RJS - changing the status of radio button

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 ?


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


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs