I want to execute a JQuery call after the click of a button:
<p:commandButton id="btnSelecionaLote" icon="ui-icon-pencil" action="#{loteController.selecionarLote()}">
<f:setPropertyActionListener value="#{lote.id}" target="#{loteController.loteBean.id}"></f:setPropertyActionListener>
</p:commandButton>
JQuery
function testePrime(){
$("#formLote\:btnSelecionaLote").click(function() {
alert("testing!");
});
}