I have this code example:
while ($row = mysql_fetch_object($result1)) {
echo '<input type="radio" name="vote" value='.$row->avalue.'/> ';
echo '<label >'.$row->atitle.'</label><br>';
}
displays 4 switches along with their labels. I now use the following jquery function for POST.
$("#submit_js").click(function() {
$.post(
"user_submit.php",
{
function(data){
});
});
I want to post the value associated with the switch. but how to choose a value? How to determine which radio button is selected, and POST is?
source
share