Populating a hidden radio input

Feb 15, 2013 at 11:18 PM
Edited Feb 15, 2013 at 11:19 PM
I read through the previous discussions about populating simple hidden input fields (by using the built-in data-rateit-backingfld="#ID" functionality), but I'm struggling to get my Javascript to auto-populate a hidden radio input, which has separate IDs for each choice. Here's a JSfiddle example, with my custom javascript that's supposed to populate the radios in realtime at the bottom. Any ideas how to make this work, or will I need to switch to single ID input fields (like a hidden number input)?

http://jsfiddle.net/YHqQX/3
Feb 15, 2013 at 11:29 PM
Answered my own question with the help of a friend. Basically I was trying to append the value to the variable name before the star was clicked, and I was using "selected" instead of "checked." Here's a working version:

http://jsfiddle.net/YHqQX/4/
Coordinator
Feb 17, 2013 at 11:34 AM
Great!