# RJS form field enable / disable etc

**URL:** <https://www.ruby-forum.com/t/rjs-form-field-enable-disable-etc/103079>\
**Category:** Rails\
**Created:** [May 1, 2007, 4:02pm UTC](https://www.ruby-forum.com/t/rjs-form-field-enable-disable-etc/103079 "2007-05-01T16:02:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rickf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9e8a1a/32.png) [@rickf](https://www.ruby-forum.com/u/rickf)\
**Post date:** [May 1, 2007, 4:02pm UTC](https://www.ruby-forum.com/t/rjs-form-field-enable-disable-etc/103079/1 "2007-05-01T16:02:20Z")

</div>

Hi All,

I guess I am looking for the preferred methodology for enabling /  
disabling form elements. I should add that my enable / disables are not  
simple in the sense that a drop down selection should cause various  
other form elements to enable or disable in various combinations.

So my question is, what does the ROR person use to make this work? I  
have seen the mention of RJS, but doesn’t that result in the AJAX with  
the server? Just to enable / disable form elements? Seems odd.

Is straight javascript the way to go?

Any comments or suggestions are appreciated,  
Rick
