user1722791 user1722791 - 1 year ago 92
Javascript Question

JQuery, selecting what does NOT contains something

If i want to select what contains "pc" i use


But what can i use to select what does NOT contains "pc"?

Answer Source

Use the :not() selector that is part of the jquery framework. Something like $('tr:not(:contains("pc"))') should do the trick.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download