I am new to javascript and am trying to use the following code to input a value into the database using php and javascript.
When the checkbox is checked, all the code works, except for the "load('../check.php?checked=Y');". I want that to input the "Y/N" into the database. I thought "load" would do the trick but it didn't. What other function would I use?
I appreciate the help!
if (checkbox.checked)
{
$('#btn').show();$('#hide').show();$('#count').show();$('#message').show();$('#notify').show();$('#responds').show();
load('../check.php?checked=Y');
}else{
$('#btn').hide();$('#hide').hide();$('#count').hide();$('#message').hide();$('#notify').hide();$('#responds').hide();
load('../check.php?checked=N');}
}