jsf 2 - Clear <p:selectCheckboxMenu filter="true"> from client side -


i'm using primefaces 5 <p:selectcheckboxmenu filter="true"> , need reset filter client side. there way this?

sharing solution community:

the idea set empty string filter input, , fire 'keyup' event

function resetfiltering(filterselector) {     $(filterselector).val('').trigger('keyup'); }; 

could called following selector:

resetfiltering('.ui-selectcheckboxmenu-header .ui-selectcheckboxmenu-filter-container input'); 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -