I have a function that on change event run the post actions.
$(\"select#marca\").change(function(){ var marca = $(\"select#marca option:selected\").attr(
this is working for me.
$(function () { $('#checkboxId').on('change', hideShowfunction).trigger('change'); }); function hideShowfunction(){ //handle your checkbox check/uncheck logic here }