Checkbox change ajax call

Checkbox change ajax call

Hello guys,

I'm having problems with jquery and checkboxes.. 
I've been trying and debugging for some time now, but I can't fix it. 
This is my current code:

  1. <script type="text/javascript">

  2.     $(":checkbox").click(function() {
  3.       $("#jquerysearch").submit();      
  4. });
  5. </script>

And this is my form:

  1. <form action="<?= base_url();?>getSearchResult" id="jquerysearch">
  2. <input type="checkbox" name="chatlanguage[]" class="styled" />

The form action url is a non existing url so if it works well I would get an 404..

The intention of this form is to grap profiles dynamically with the data in the form as filter. So when a checkbox changes the form had to be submitted and then should there be a ajax call with all parameters of the form and that page should return some html and that html should be insterted in a div. The php side of this isn't a problem but the jquery side unfortunatelly. 

Thanks in advance :)