javascript - p:selectOneMenu hide popup on mouseOut event -
i have primefaces component, , need hide popup of element on mouseout event. can`t add onmouseout in component, because primefaces not support attribute.
<p:selectcheckboxmenu id="selectcheckboxmenu" label="selectcheckboxmenu" onmouseout="hidepopup"> <f:selectitems value="#{selectonemenubean.availableregions}" /> </p:selectcheckboxmenu>
any appreciated.
since have mentioned jquery
can add mouseout
below:
$("#selectcheckboxmenu").on('mouseout',function(){ //write hidepopup function content here });
or can try mouseleave
$("#selectcheckboxmenu").on('mouseleave',function(){ //write hidepopup function content here });
Comments
Post a Comment