I have two variables, col1 and col2, in JavaScript, I need to send them to a PHP page when submit button is clicked.
I have the following code:
<script>
$("input:radio").change(function(){
if($(this).is(":checked")){
var col1 = $(this).parent().parent().children("td:first");
var col2 = col1.next();
}
})
</script>