is there a way to combine these 2 functions since they do the same thing?
Code:$(document).ready(function(){ $("img").click(function () { $("img").fadeOut("slow"); }); }); $(document).ready(function(){ $("p").click(function () { $("p").fadeOut("slow"); }); });



Reply With Quote


Bookmarks