It seems that jQuery :contains selector does not work on IE8.
Please see following example on IE – LIVE DEMO
JS:
$('table tr td:contains(" + ")').each( function(){
$(this).addClass('url');
});
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to convert the spaces in your TDs to HTML entities (
)for
$('table tr td:contains(" + ")')to work. (Same JS/CSS)HTML:
However it will fail on modern browsers, so the solution is to replace the entities for those browsers. Just prepend this snippet before yours, it will do the job.