assign a function to multiple objects
is it any shortcut for these lines of code:
- $("#div1").fadeToggle("slow", "linear");
$("#div2").fadeToggle("slow", "linear");
$("#div3").fadeToggle("slow", "linear");
i mean assigning a function for multiple objects, i testes code below, but it didn't worked out:
- $("#div1").$("#div2").$("#div3").fadeToggle("slow", "linear");