[jQuery] event fires exponentially
Hi guys,
I have this piece of innocent looking code:
<script>
$(document).ready(function(){
$form = $('#filter-form');
$form.ajaxForm({
//dataType: 'json',
success: function(){
alert("peng");
},
target: "#layout-child-output"
});
$('input', $form).change(function(){
$form.submit();
});
})
</script>
If I check one checkbox, I get one submit, for 2 2, however for 3 4,
for 4 16, and so on until the server crashes.
Any idea what is wrong here?
--
Jan