Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript jQuery toggleClass or addClass problem Re: jQuery toggleClass or addClass problem

#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();
});
});