Forums

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

Home Forums JavaScript jquery script strange issue Re: jquery script strange issue

#105189
Mottie
Member

Try this demo:

$("#header").hide();
$('body').prepend('Search');

$("#header").find("a").on("click", function() {
$(this).parents("#header").fadeOut("slow");
return $(this).hasClass('close') ? false : true;
});

$("a#toggle").click(function() {
$("#header").fadeToggle("slow", "linear");
});‚Äč