I have created a javascript in which when we click "Add" button, it adds textboxes with similar name, which creates a list of textboxes. The textboxes have code like below
<input type="text" name="my_textbox[]" id="my_textbox" />
<input type="text" name="my_textbox[]" id="my_textbox" />
<input type="text" name="my_textbox[]" id="my_textbox" />
<input type="text" name="my_textbox[]" id="my_textbox" />
The reason why I have given name as "my_textbox[]" is because this gets submitted to php code which then pretends these textboxes as array.
Now I would like to know the number of textboxes generate. It would be best if I can get the count through jQuery.
Thanks in advance.