RJS - changing the status of radio button


#1

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 ?

kad


#2

$() is for DOM ids, not names, If you’re using rails helpers, then it’s
probably $(‘prop_type_0’).

Jason