I have a table that has rows like this:
<tr id="" class="objectRow">
<td class="bulkSelector"><input id="" type="checkbox" value=""/></td>
<td class="favorite"></td>
<td class="name"><a id="" class="" href="">Ut Urna Nisl</a></td>
<td class="description"><p>Nam feugiat tincidunt massa nec venenatis. Mauris egestas consectetur magna</p></td>
<td class="modifiedDate"><p>5/20/2009</p></td>
</tr>
I want to create a jQuery wrapped set of all the text elements that I can then send to function that will truncate them if they don't fit in their cells.
I can't figure out how to get the wrapped set.
Was trying this, but it doesn't work:
var textNodes = $('#resultsTable .objectRow')
.contents()
.filter(function(){ return this.nodeType == 3; })
.filter(function(){return this.nodeValue != null});
Thanks!