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

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -