Jquery Function required
Bütçe $30-250 USD
I have a jquery function which works with mootools so when my form is submitted all values are submitted and processed and then a div is loaded to show new values.
Inside my form I have a check box as shown below:
<input name="title" id="title" type="checkbox" value="1" />
I need my current function modifying on a new function creating so that onclick of the checkbox the value of the checkbox is posted and the div loaded as in my current function.
Also when checkbox is unchecked the value 0 needs to be posted and the same div reloaded.
Here is my current function...
<script type="text/javascript">
[url removed, login to view]('domready', function() {
$('design_form').addEvent('submit', function(e) {
//Prevents the default submit event from loading a new page.
[url removed, login to view]();
[url removed, login to view]('send', {onComplete: function(response) {
$('design_form_div').load('[url removed, login to view]', {id: "<?=$_GET['id'];?>"});
}});
//Send the form.
[url removed, login to view]();
});
});
</script>