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:
- <script type="text/javascript">
- $(":checkbox").click(function() {
- $("#jquerysearch").submit();
- });
- </script>
And this is my form:
- <form action="<?= base_url();?>getSearchResult" id="jquerysearch">
- <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 :)