remove dynamic created control
-
i m creating controls dynamically...like i m having a button "Add More" and on click of this button i want to add dropdownlist binded from database and a link button "Remove" when user clicks on remove button the particular dropdownlist and that remove button should be removed.... but how can i do that using javascript...
-
i m creating controls dynamically...like i m having a button "Add More" and on click of this button i want to add dropdownlist binded from database and a link button "Remove" when user clicks on remove button the particular dropdownlist and that remove button should be removed.... but how can i do that using javascript...
Just use document.removeChild(element) to remove. Also do an AJAX call to the database to remove the element from server as well.. ;) ;)
Abhishek Sur