Hi all
I am using JQuery for some AJAX functionality. But when is pass the value of a checkbox, the value is show regardless of whether the checkbox is ticked or not. Here is my code:
$(document).ready(function(){
$('#submitform').click(function(){
$.ajax({
type: "POST",
url: "abs_newabs_check.asp",
data: { allday: $("#allday").val() },
success: callback
});
});
});
function callback(data, status)
{
$("#ajaxdiv").html(data);
}
What am I doing wrong? Any help appreciated. Thanks.