Forum: Ruby on Rails RJS - changing the status of radio button....

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Kad K. (Guest)
on 2007-05-02 21:10
I am trying to change the checked button in a radio button array named
'prop_type' using

page << "$('prop_type[0]') = 'checked'"

got an error on the left side :  prop_type[0]...  it seems correct ...
or not ?

Jason R. (Guest)
on 2007-05-02 21:53
(Received via mailing list)
$() is for DOM ids, not names, If you're using rails helpers, then it's
probably $('prop_type_0').

This topic is locked and can not be replied to.