Home › Forums › JavaScript › jQuery toggleClass or addClass problem › Re: jQuery toggleClass or addClass problem
May 22, 2009 at 6:00 am
#57955
apostrophe
Participant
Why bother with adding and removing classes when you can use the hide function instead?
Code:
$(function() {
(‘a#link’).click(function(){
(‘.slot_text’).hide();
});
});
(‘a#link’).click(function(){
(‘.slot_text’).hide();
});
});