applying filter property using jquery to html table

Hi experts,

i'm using jquery to work with hyperlink properties inside a html table.

I have a page that looks like this:

my page
There are 2 tables on my page.
One table is called id="TableEmployees" and the other is called id="TableNfl"

I want to use jquery to remove the <a href  tag from any cells not containing "Davolio", "Peacock", "Buchanan"

This is my fiddle I have so far.

The key code in question in my fiddle is this:

$('td').find('a').filter(function () {
    return $(this).text() != "Davolio"
        && $(this).text() != "Peacock"
        && $(this).text() != "Buchanan";

Right now this is essentially remove being applied to every link on the page.

How do i revise this to have it only apply to the table called id="TableEmployees"  ? Anyone  know?

I pretty sure I just need to add #TableEmployees to this snippet but just not sure on the syntax.

My desired result would look like this:

desired result
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Robert SchuttSoftware EngineerCommented:
The code in the fiddle does not correspond to the posted code here. The code from the question text could be amended like this:
$('#TableEmployees td').find('a').filter(function () {
    return $(this).text() != "Davolio"
        && $(this).text() != "Peacock"
        && $(this).text() != "Buchanan";

Open in new window

This uses a descendant selector, one of the basic constructs also used in CSS (also see W3C).

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.