hi guys, I would like to make a focus to the next input in a table with jquery. I have this table in jsf.
<p:dataTable id="resu" value="#{onController.items}" var="item" >
<p:column id="colIn" >
<h:inputText id="i" value="#{item.cup}" />
<p:column>
<p:dataTable>
was tested with this:
function nexts(input) {
$(input).next("input[type=text]").focus();
}
onkeyup="nexts(this)"
in the input
It does not work between rows only with inputs followed.