Forums

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

Home Forums JavaScript fadeToggle jquery Re: fadeToggle jquery

#104095
Taufik Nurrohman
Participant
$("#searchbox").hide(); // Hide by default
$("button").click(function() {
$("#searchbox").fadeToggle("slow", "linear").find(".close").on("click", function() {
$(this).parents("#searchbox").fadeOut("slow");
return false;
});
});

http://jsfiddle.net/tovic/KaeT7/1/