[SOLVED] Pjax form submit onchange

Hi -

I have a form within a pjax block, when I click the submit button it does update the container without reloading the entire page. Now I would like to automatically submit the form and refresh only the container when a dropdownlist value is changed.

Anyone has an idea on how to achieve that?

thanks


$(document).on('change', '#your-dd-list', function(){

    $(this).closest('form').submit();

})

Works, thanks a lot!