192
rated 0 times
[
194]
[
2]
/ answers: 1 / hits: 18291
/ 15 Years ago, tue, january 19, 2010, 12:00:00
i have this example code:
while ($row = mysql_fetch_object($result1)) {
echo '<input type=radio name=vote value='.$row->avalue.'/> ';
echo '<label >'.$row->atitle.'</label><br>';
}
this displays 4 radio buttons alongwith their labels.
now I am using the following jquery function to POST.
$(#submit_js).click(function() {
$.post(
user_submit.php,
{//how to POST data?},
function(data){
});
});
I want to post the value associated with the radio button. but how do i select the value?
how do i determine what radio button is selected and POST it?
More From » jquery