Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(this).parent().find(this.attr("tagName").toLowerCase())
- $('p:eq(0)').parents().each(function() {
- var el = $(this).find( $(this).attr('tagName').toLowerCase() );
- if ( el.length ) {
- console.log(el);
- }
- });
Add Comment
Please, Sign In to add comment