Submit a form on checkbox click
<p>I currently use the following code to submit a form and then insert the result in a div. The form is submitted by pressing a button:</p>

<pre><code>&lt;script type="text/javascript"&gt;

$(document).ready(function()
{

$('#create').live ('submit', function() {

$.ajax(
    {

    data: $(this).serialize(), // get the form data

    type: $(this).attr('method'), // GET or POST

    url: $(this).attr('action'), // the file to call

    success: function(response)
        { // on success..

        $('#created').html(response); // update the DIV

        }

    });

$('#url').val('');

return false; // cancel original event to prevent form submitting
});

$("#content").load("contentpage.php");

});
&lt;/script&gt;
</code></pre>

<p>I would like to change this so that rather than submitting the form with the button, I submit it by clicking a checkbox. Is this possible? There are a lot of forms on the page (and several checkboxes). The one that would need to submit the form is called "submitcheckbox"</p>

<p>Any help would be great...</p>

<p>Ross</p>
