Help with "not" selector
Help with "not" selector
Simply want to hide other links in a batch when I hover over one.
HTML:
<a href="#" id="link1" class="menuitem">Home</a> <a href="#" id="link2" class="menuitem">About</a> <a href="#" id="link3" class="menuitem">History</a>
And the script
$("#link1").hover(function () {
$(".menuitem").not('[name="#link1"]').hide();
});
I realize I am a neophyte; any help is appreciated.
ace in PA
Topic Participants
webectomy
jay.blanchard