feh1ks
10/16/2016 - 3:03 PM

jQuery SlideUp / SlideDown

jQuery SlideUp / SlideDown

// jQuery DropDown Script
$(".search_toggle").click(function(){ // click to slide down
	var $t = $(".search"); // block to show on click
	if ($t.is(':visible')) {
		$t.slideUp();
		
		$(".h-row-2")
			.delay(500)
			.queue(function (next) {
			next();
		});
	}
	else {
		$t.slideDown();
	}
});
<a href="#" class="search_toggle">slideDownToggle</a>