I want to send two variables using JQuery, The first variable is going to be selected by a RADIUS and the second variable by means of a SELECT and now I want those two variables to be sent to another file, so that I can upload those two variables to the DB
<form action="cuenta.php" method="post" name="regisConsulta" enctype="multipart/form-data">
<input type="radio" name="cosas_ID" value="<?=$cosa_ID;?>">
<select name="modo_tipo" class="status" >
<option value="<?=$modo_ID;?>"><?=$tipo;?></option>
</select>
I got a script, but it only sends one variable (LA DEL SELECT), but I can not get it to send the two (radio and select).
$(document).ready(function(){
$('select.status').on('change',function () {
var decision = $(this).val();
var id = $('td.myid').html();
alert(decision);
$.ajax({ type: "POST",
url: "guarda_modo.php",
data: {decision: decision, id: id },
success: function(msg) {
$('#autosavenotify').text(msg);
}
})
});
});