jQuery: find text node within selection 

Joined:
02/21/2009
Posts:
172

September 02, 2014 15:42:09    Last update: September 02, 2014 15:42:34
Use a filter function to get text nodes within a jQuery object:
$('#users-table tr:eq(1) td:eq(1)')
.contents()
.filter(function() { 
    return this.nodeType == Node.TEXT_NODE; 
})
Share |
| Comment  | Tags