html hyperlinks in a table column using javascript

I have a static html table that looks like this:

when i run my page it looks like this
This is my fiddle for it

https://jsfiddle.net/t3ksq09p/

If you look a the TeamWebsite column although the rows don't look like they are hyperlinked. if you click on any of those websites it launches the website for the one you click on in a different window.

Anyone know how to add some javascript that checks the Wins column value.

So if a team has 0 wins then I would like to remove the hyperlink that is applied to that team’s url in that the TeamWebsite column

In the case of my table, the 49ers have 0 wins, so if I click on their url in my table, it should not open up the 49er’s website when I click on the url on my table.

Right now if I click on the 49ers url on my table it launches their website.

Anyone know I revise my fiddle to do this?
LVL 1
maqskywalkerAsked:
Who is Participating?

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

x
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.

Julian HansenCommented:
Quite easy with JQuery (https://jsfiddle.net/sh5zfrjs/)
$(function() {
  $('tr td:nth-child(6):contains(0)').each(function() {
    $(this).prev('td').html('');
  });
});

Open in new window

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
Julian HansenCommented:
Slightly more robust version https://jsfiddle.net/sh5zfrjs/1/
$(function() {
  $('tr td:nth-child(6)').filter(function() {
    if (parseInt($(this).text()) == 0) $(this).prev('td').html('');
  });
});

Open in new window

Julian HansenCommented:
Combination of the two - each is more efficient than filter
$(function() {
  $('tr td:nth-child(6)').each(function() {
    if (parseInt($(this).text()) == 0) $(this).prev('td').html('');
  });
});

Open in new window

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
JavaScript

From novice to tech pro — start learning today.