I have a student text box which accepts a value and search the student in the list below. This is how the console looks for the element for the first time
input type="text" class="studSearch" id="esearch0" name="esearch[0]"
value="Select student to enable"
When I enter all the values after that and click on "add another student" button, the next time student text box looks like below
input type="text" class="studSearch" id="esearch1" name="esearch[1]" value="Select student to enable"
I am storing the elements in a database and fetching it in the code. I am declaring the initial element in the database as Name = esearch[0] I want a way to write a prog dynamically so that I declare the web element once but use it when I am adding 3 students also one after the other?