Answers for "jquery remove child 1 elemtn"

3

how to remove child element in jquery

//for remove the child in jquery you can use the below code
$(".parent").empty();
Posted by: Guest on February-14-2021
1

how to remove child element in jquery

//for remove the child in jquery you can use the below code
$("selectorname").empty();
Posted by: Guest on September-14-2021
0

jquery remove child 1 elemtn

$(this).find('span:first');
$(this).find(':first-child');
$(this).find('span').eq(0);

// Note that you don't need to use $(deleteElement) as deleteElement is already a jQuery object. So you can do it like this:
$(this).find('span:first').remove();
Posted by: Guest on September-17-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language