[Rails] Re: How to disable form elements under any div ????

2009-06-25 Thread Sandip Ransing
Thanks, for reply ! following trick worked for me... I created one hidden div outside form tag and while submitting form appended unnecessary div ( with form elements ) to the hidden div outside form tag. JavaScript method outer_hidden_div.appendChild( unnnecessary_div_inside_form_tag )

[Rails] Re: How to disable form elements under any div ????

2009-06-24 Thread Franco Catena
If you are using prototype, you can get (for example) all the divs with the $$ function and then disable the form elements, see http://www.prototypejs.org/api/utility/dollar-dollar. Regards. Franco Catena. On Jun 24, 10:51 am, Sandip Ransing san2...@gmail.com wrote: Hello All, how do i

[Rails] Re: How to disable form elements under any div ????

2009-06-24 Thread Colin Law
2009/6/24 Sandip Ransing san2...@gmail.com: Hello All, how do i disable child form elements of any div [ html obj ], so that they will not get posted. Is there any other way, to toggle form elements while form post ?? ~~~ form div1 form elements /div div2 form elements /div2