0
If else statement
How would I write an if else or switch statement where if I click one link/button it would trigger one jquery effect or if I clicked another button it would trigger a different one?
1 Réponse
0
you can use events for this.
Like
$(selector).click(function(){
$(selector).hide();
});
where selector is any tag , class name , Id .