Hi,
please I would to know If I have some input text with the same classname,
can I add an event, for example onclick, for each of them without adding onclick=“function();” in every input text in the code?
for example I have:
<input type=“text” class=“inputbox” name=“text1”>
<input type=“text” class=“inputbox” name=“text2”>
<input type=“text” class=“inputbox” name=“text3”>
Without adding this for each input:
<input type=“text” class=“inputbox” name=“text3” onclick=“function();”>
is it possible to set that onclick event with a js function for every input text with that same classname?
many thanks.