JQuery problem with radio buttons
Posted: Thu Dec 17, 2009 7:03 am
I have a radio group,
how can I get the the selected value in order to submit it in my database?
I tried var row_jquery_src = $("#row_jquery_src").attr("value"); and it doesn't work, it returns undefined.
Code: Select all
<input id="row_jquery_src0" name="row_jquery_src" type="radio" value="0" class="radio" />option1
<input id="row_jquery_src1" name="row_jquery_src" type="radio" value="1" class="radio" />option2I tried var row_jquery_src = $("#row_jquery_src").attr("value"); and it doesn't work, it returns undefined.