0
Where am I going wrong with my form? When changing checkbox it needs to submit the form
HTML
<form id="form_onoff" name="form_onoff" action="onoff.php" method="post">
<input type="checkbox" value="on" id="slideThree" name="slideThree" />
<label for="slideThree"></label>
JQUERY
$(function($) {
$('input[type=checkbox][name=slideThree]').change(function() {
$("#form_onoff").submit(function() {
$.post('inc/onoff.php?id=<? echo $_SESSION['ids']; ?>', {slideThree: slideThree}, function(resposta) {
});
});
});
});
Thanks in advance
So. I put the post the way q was. And when I click it gives a latch and gets some time thinking :(
– Luckas
If you only use the
$.post()
by logic must work. :)– user98628
It worked. Line of the post was wrong. Brawl
– Luckas
Needing, we are there! D
– user98628