Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6838599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:36:59+00:00 2026-05-26T23:36:59+00:00

It seems that jQuery :contains selector does not work on IE8. Please see following

  • 0

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');
});
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T23:36:59+00:00Added an answer on May 26, 2026 at 11:36 pm

    You need to convert the spaces in your TDs to HTML entities ( )

    for $('table tr td:contains(" + ")') to work. (Same JS/CSS)

    HTML:

    <table>
        <tr>
             <td>&nbsp;+&nbsp;</td>
             <td> 1 </td>
             <td> 3 </td>
             <td> 6 </td>
             <td> 7 </td>
        </tr>
    </table>
    

    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.

    if( !($.browser.msie && $.browser.version < 10) ){
        $('table tr td').each(function(){
            $(this).html( $(this).html().replace(/&nbsp;/gi, ' ') );
        });
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It seems that i cannot access $(this) inside jquery ajax success function. please see
Has anyone successfully gotten swfaddress to work with IE8 and above? It seems that
It seems that jQuery.browser is deprecated in the latest jQuery. The doc recommends that
it doesn't seem that jquery ui themes does anything to multiselect listboxes. does anyone
Seems that requirements on safety do not seem to like systems that use AI
Total beginner question about jQuery: I have a Form that contains several TextBoxes (input
I have a page that contains an element, <displayedimage> , that is not getting
Trying to use jquery to output a string that contains a hyphen like so:
I'm trying to use the jquery :contains (or .contains()) selector inside a function, however
Do you know if it's possible to run jQuery on a variable that contains

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.