javascript - detect when user check or uncheck row on client side in primefaces datatable -
i use this row editing primefaces datatable , added multiple selection feature through this example then want detect on client side when user check or uncheck 1 row , number of rows checked @ each change i tried many ways firebug .... no result here 1 of essays (just testing): $(function(){ $('.ui-chkbox-box.ui-widget.ui-corner-all.ui-state-default').mousemove(function(){ if(('.ui-chkbox-box.ui-widget.ui-corner-all.ui-state-default').hasclass('ui-state-active')) alert('show'); }); do have idea if want know when user clicked checkbox located in datatable, can use code listen click , verify if checked or not: jquery(".ui-chkbox").click(function () { if(jquery(this).find("span").first().hasclass("ui-icon-check")) alert("unchecked"); else alert("checked...