How can I generate dynamic html elements using jQuery?
Is it possible to remove it on button click?
i.e.
I have to generate textbox on button click and contain of textbox is going to display in one label. Like this:
User can add upto 3 emails.
And by clicking delete button the generated textbox will be deleted.
How can I do that?
I have referred to this: how can i get id/ generate id of dynamically generated elements in html using jquery? thread
any suggestion?
I think you want something like – http://jsfiddle.net/rifat/NGgSB/
Though there are other ways to do it 🙂