slidetoggle - Javascript, Toggle, Slide -
http://jsfiddle.net/z9zd8/271/
$(function() { $('#toggle1').click(function() { $('.toggle1').toggle(); return false; }); $('#toggle2').click(function() { $('.toggle2').toggle(); return false; }); $('#toggle3').click(function() { $('.toggle3').toggle(); return false; }); $('#toggle4').click(function() { $('.toggle4').toggle(); return false; }); });
i like, open slider. say: have slider 1 open. when open slider 2, close slider 1 . should open slider
i hope can me
thank you
just use jquery code:
$("a[id^='toggle']").click(function(){ $('div[class^="toggle"]').slideup(500); $("."+$(this).attr("id")).slidetoggle(500); });
Comments
Post a Comment