Question 1: Given
<input type="radio" name="foo" value="1" />
<input type="radio" name="foo" value="2" />
<input type="radio" name="foo" value="3" />
In Mootools, how do I return "2" given an input of "foo", assuming that the second radio button was clicked.
Question 2: (it's related)- Given similar checkbox inputs, how do I return either an array or comma separated list of the checked values?
I'm wanting to submit the values of these inputs via Request.JSON, passing it as a GET parameter.