+ 2
How to remove elements using jquery?
I want a simple demonstration of how to remove a button after it has been clicked using JQUERY.
2 Respostas
+ 3
//Combine Chaotic
$('button').click(function(e){
this.remove();//Click then it's removed
})
0
$("#elementid").remove();
$(".element-class").remove();
You can get the element(s) similar to the way you specify element(s) in CSS using the $() jQuery selector.