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

  • Home
  • SEARCH
  • 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 9100571
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T00:54:02+00:00 2026-06-17T00:54:02+00:00

I’m trying to hide all table rows that don’t contain the string Marc from

  • 0

I’m trying to hide all table rows that don’t contain the string “Marc” from a js widget loaded from an external url.

<script type="text/javascript">
  id = "ki1120mmvd";
  name = "schedules";
  document.write(unescape("%3Cscript src='http://healcode.com/javascripts/hc_widget.js' type='text/javascript'%3E%3C/script%3E"));
</script>

I’ve been able to hide some elements within the table rows with css using the class id or attribute but it looks like I need js/jquery/php to completely eliminate the rows and everything I’ve found hasn’t worked.

Here is a link to where I grabbed the code:
http://www.funkydoor.com/studio_polk_street.html

Here is how I’m using it:
http://www.marcmatisyoga.com/schedule.html

  • 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-06-17T00:54:04+00:00Added an answer on June 17, 2026 at 12:54 am

    The :contains selector is the perfect choice. But, in your specific case, there is some more effort to be done in order to make it work. In my tests, it seems that due to some broken URL’s in the external script that are loaded dynamically, jQuery or $ are undefined. The workaround is to reload the jQuery API after the table (and the other external scripts) loads.

    [UPDATE]

    I’m re-posting the whole content of a .html file which I believe it renders the correct structure (for me, it works in Chrome). There are still some necessary modifications you’ll have to do in order to achieve your desired font color and URL formatting, which you can implement by jQuery‘s .css() function, as I did below. Please note that:

    1. I removed entirely the <style>...</style> tag and
    2. I’m calling the waitForFnc function in the <body>‘s <script> tag, just after the external script is loaded dynamically.

    I apologize for the need of horizontal scrolling to see the full jQuery style formatting, but it’s not really relevant to the solution up to the point when you would like to modify it apply your own formatting.

    <html>
        <head>
    
            <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> 
            <script>
                var count=0;
    
                function waitForFnc(){
                    if(typeof $ != "undefined")
                    {
                        if($("tr.bikram_yoga").length==0){
                           window.setTimeout(waitForFnc,50);
                        }
                        else
                        {
                                $(" div.healcode .header, div.healcode table.schedule tr th, div.healcode table.schedule tr.odd td, div.healcode table.schedule tr.even td").css("background-color","#f4f4f4");
                                $(".location, span.print_text, a.print_version, .mbo_class, span.day_links, .header, span.hc_date_year, div:nth-of-type(10), a[href*='100000210'], a[href*='/13/'], a[href*='100000242'], a[href*='100000201'], a[href*='/142/'], a[href*='100000174'], a[href*='100000229'], a[href*='100000053'],th.trainer").hide();
                                $("div.healcode").css("padding","20px 0 0 20px !important");
                                $("div.healcode span.hc_day").css({"margin-left": "0 !important",
                "text-align": "left !important"});
                                $("div.healcode table.schedule").css("border","none !important");
                                $("table .schedule, tr schedule_header th").css("background-color","#f4f4f4");
                                $("tr.bikram_yoga").not(":contains('Marc')").hide();
                        }
                    }
                    else{
                        if(count==0){
                            var oHead = document.getElementsByTagName('HEAD').item(0);
                            var oScript= document.createElement("script");
                            oScript.type = "text/javascript";
                            oScript.src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js";
                            oHead.appendChild( oScript);
                            count=count+1;
                        }
                        window.setTimeout(waitForFnc,50);
                    }
                }
            </script>
        </head>
        <body>
            <table>
                <tr>
                    <td align="left" valign="top">
                    <div style="background-color: white;">
                    <script type="text/javascript">
                        id = "ki1120mmvd";
                        name = "schedules";
                        document.write(unescape("%3Cscript src='http://healcode.com/javascripts/hc_widget.js' type='text/javascript'%3E%3C/script%3E"));
                        waitForFnc();
                    </script>
                    <noscript class="normal_left_yellow">
                        Please enable Javascript in order to view the class schedule: <a href="http://healcode.com" target="_blank">HealCode</a>
                    </noscript>
                    </div>
                    </td>
                </tr>
            </table>
        </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to find ID3V2 tags from MP3 file using jid3lib in Java.
I've got a string that has curly quotes in it. I'd like to replace
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have a text area in my form which accepts all possible characters from
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
Does anyone know how can I replace this 2 symbol below from the string
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka

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.