A client-side action like this is done with JavaScript.
Or AJAX could be used.
Which is still JavaScript, but with a pointless (in this case) round-trip
to the server
It is probably correct that the round trip to the server is pointless,
but not necessarily, we do not know enough about the requirement.
Maybe the text boxes to be added depend on data the user has entered
and in data in the database in some way that would make AJAX more
appropriate.
It is probably correct that the round trip to the server is pointless,
but not necessarily, we do not know enough about the requirement.
Maybe the text boxes to be added depend on data the user has entered
and in data in the database in some way that would make AJAX more
appropriate.
Of course that’s possible, but if so certainly not apparent in the OP’s
description of the task.