For example we want to hide all hyperlinks that do not have “banana” class. How to do that with jQuery?
You can use the javascript code below.
$('a').not('.banana').hide();
Easy right? 😀
Just another Xrvel site
For example we want to hide all hyperlinks that do not have “banana” class. How to do that with jQuery?
You can use the javascript code below.
$('a').not('.banana').hide();
Easy right? 😀
alternatively you can use :not selector, like this:
$(‘a:not(.banana)’).hide();
easier right? 😀
Mantap gan 😀
mantap,simple banget 🙂