How to create div container with text and small delete icon in javascript

nathanielbear

New Member
Using dynamically created TextBox and Button controls (ASP.NET C# page), I need to write JavaScript function that will (by clicking on button) add text + some small delete icon next to that text (enabling user to delete this text), and place it to some container (div or something). Don't know if I explained clearly enough, but I want to do create something very similar to this stackoverflow TAGS area (in my case, tags should be created by click on the button).
LWpox.png
Also I have to get those values after post back (write it to database after user submit that page).Thank you!
 
Back
Top