I'm trying to truncate a string to a certain pixel width. The best way I discovered is through using jQuery's selector and possibly using each on the results. My attempt is at http://jsbin.com/umawi/edit. I haven't done much jQuery at all, and any help is appreciated.
Thanks
Edit: I need to do this for inline elements and not block elements.