I have this JSP code
<%=xx.getText("SHOP.NR")%>:</th><td><%=web.getFormInputText("NR", "form-control")%>
This generates this HTML code in the Browser.
<input type="text" name="NR" id="NR" size="50" value="" maxlength="50" class="form-control" />
I know how to call a Javascript function with the ID or name of it with pure HTML code. Can I do the same on the JSP code that is converted to HTML or do I need to replace the JSP code to pure HTML code to be able to call javascript from my field or use an onChange on the field?
I have tested if I can manually insert id="" or similar in the code below so that JavaScript can find it, but JavaScript cannot find my field with the code below.
<%=xx.getText("SHOP.NR")%>:</th><td><%=web.getFormInputText("NR", "form-control")%>