JavaScript generate and delete html inputs

This generates a new text box with a unique id if you hit the Add button, but if you hit the remove button it removes the last text box.
Try it:

    The count function counts the current text boxes, I used XPATH for this and then iterate trough the results to count them.

Leave a Reply

Your email address will not be published.

three × one =