I have created multiple textboxes/textfields using a `for` loop in JSP (or Struts2). The textboxes/textfields are created at runtime based on the condition, therefore i am unable to say exact number of textboxes. I have code which is executed using the `onFocus` of each of these textboxes and perform the same function for each one, for example when i `onfocus` on textbox, the calender will be opened. The function which is executed is performed based on the "name" of the textbox. But whenever i run this JSP and onfocus on the textbox, it executes only for the first textbox rather than all of them. please help me with this, or give me some suggestions what i need to do in this scenario. Thank You