I need to remove tags going after #first
and only in #container
.
How can I do it with jQuery?
<div id="container">
<div id="first"></div>
<div id="remove_me_1"></div>
<div id="remove_me_2"></div>
<div id="remove_me_3"></div>
<a href="" id="remove_me_too">Remove me too</a>
</div>
Thank you
Tap Photos you're tagged in. Tap the photo you want to hide. Tap to open the photo, then tap to the right of the photo. Tap Remove Tag.
The * selector selects all elements. The * selector can also select all elements inside another element (See "More Examples").
Approach: Select the HTML element which need to remove. Use JavaScript remove() and removeChild() method to remove the element from the HTML document.
Un-tag an item: Control-click it or tap it with two fingers, then choose Tags. Select the tag you want to remove, then press Delete. To remove every instance of a tag from all files and folders, choose Finder > Preferences, then click Tags.
You can use nextAll
method: http://api.jquery.com/nextAll/
$("#first").nextAll().remove();
$.("#container #first ~ *").remove();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With