2009/6/24 Sandip Ransing <[email protected]>:
> 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>
>>
>> </form>
>>

Do you mean disable?  If what you are trying to do is to prevent them
from being posted when the form is submitted then disabling them is
not what you need to do.  As far as I know there is no way of
preventing fields that have values from being posted though others may
correct me on this.  Why can you not just ignore the irrelevant fields
when the form is submitted?

Colin

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to