I want to post the value when some click on delete. Please check the error
$.ajax({
type: "POST",
var checkid = $('#delete').click(function(){ $(this).val();});,
url: "survey-command.php",
data: { checkid: checkid, }
}).done(function( msg ) {
alert( "Data Saved: " + msg );
});
I dont know how pass the value to this checkid variable