jQuery :contains(unicode_characters)
Posted
by SeanJA
on Stack Overflow
See other posts from Stack Overflow
or by SeanJA
Published on 2010-03-16T19:02:00Z
Indexed on
2010/03/16
19:31 UTC
Read the original article
Hit count: 255
I have an element like this:
<span class="tool_tip" title="The full title">The ful…</span>
This seems to work:
jQuery('span:contains(…)');
But this does not:
jQuery('span:contains(…)');
I am pretty sure that it would be bad to use the first one because if someone else saves the file, or the browser decides to get the file in a different character set for some reason things will not work.
There has to be a way to properly select this span, right?
© Stack Overflow or respective owner