Using a jQuery selector and each
<p>I'm trying to truncate a string to a certain pixel width. The <em>best</em> way I discovered is through using jQuery's selector and possibly using each on the results. My attempt is at <a href="http://jsbin.com/umawi/edit" rel="nofollow">http://jsbin.com/umawi/edit</a>. I haven't done much jQuery at all, and any help is appreciated.</p>

<p>Thanks</p>

<p>Edit: I need to do this for inline elements and not block elements.</p>
