Adding dynamic entry based on click event

Use below code snippet to add dynamic text box whenever a label is clicked.