Hi,

I'm trying to submit a form by an onchange event of a checkbox and show the
results in a div on the same page...The trouble I'm having is with the
checkbox

<input type="checkbox" name="instockOnly" id="inStockOnly" value="1" />

Now, I'm using jquery with the forms plugin,...

$j(document).ready(function() { 
    // bind form element using ajaxForm 
    $j('#inStockOnly').change(function() {
                $j('#filterResultForm').ajaxForm({ 
                        // target identifies the element(s) to update with the 
server response 
                        target: '#extendedSearchTarget', 
         
                        // success identifies the function to invoke when the 
server response 
                        // has been received; 
                        success: function() {
                                $j('#extendedSearchTarget').show();
                        } 
                }); 
        });
});

But this doesn't work at all...

Could someone help me please?

Kind regards,

D. Koper



-- 
View this message in context: 
http://www.nabble.com/Checkbox-onchange-submit-form-tp19927999s27240p19927999.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to