You can do it using contents() and .eq()
$('.item').each(function(i, v) {
$(v).contents().eq(2).wrap('<span class="new"/>')
});
More Related Contents:
- Why am I getting an OPTIONS request instead of a GET request?
- jQuery get value of select onChange
- jQuery autocomplete tagging plug-in like StackOverflow’s input tags? [closed]
- How to detect if two divs touch with jquery?
- Select deepest child in jQuery
- jqGrid get “th” and “thead” using jQuery
- How do I hide an element on a click event anywhere outside of the element?
- How to detect input type=file “change” for the same file?
- JavaScript: Changing src-attribute of a embed-tag
- jqgrid client side sorting with server side paging – data disappears
- jQuery: keyPress Backspace won’t fire?
- More efficient way to handle $(window).scroll functions in jquery?
- jquery, add/remove class when window width changes
- Add CSS to iFrame [duplicate]
- How to update value of data in jqgrid
- jquery load() strips script tags – workaround?
- HTML5 Video autoplay on Mobile Browser
- Return Partial View and JSON from ASP.NET MVC Action
- Remove span tag in string using jquery
- jquery get height of iframe content when loaded
- How can I check if a value is a JSON object?
- Difference between $.ajax(); and $.ajaxSetup();
- How to detect horizontal scrolling in jQuery?
- Rails 4 rendering a partial with ajax, jquery, :remote => true, and respond_to
- update progress bar using ajax request seconds
- How to use placeholder as default value in select2 framework
- JQuery DatePicker ReadOnly
- Character countdown like on twitter
- Select2 v4 how to paginate results using AJAX
- JavaScript – Escape double quotes