Click here to Skip to main content
15,892,697 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have to generate 2 or 3 textboxes side by side in HTML dynamically using javascript when clicking on ADD button.When clicking on ADD button again I need to generate a new row with 2 or 3 textboxes and how can we clear which is in the div?

Could anybody please explain me how to do it.

Thank You
Posted

1 solution

Use .empty()[^].

You can empty all the children of a control like...
C#
$('#divId').empty();
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900