<html>
<body>
<input type="checkbox" checked="checked">
</body>
</html>
I want to pass the value of the checkbox as 1 or 0 according to selection. If it is checked then 1 is sent to a PHP file else 0 is sent. The value is sent using a onClick event in the html, using AJAX I want to send the value.
I'm new to AJAX so unable to figure out a way to accomplish this task.
Thanks in advance.