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:

fiddle demo

$("a[id^='toggle']").click(function(){       $('div[class^="toggle"]').slideup(500);       $("."+$(this).attr("id")).slidetoggle(500);         }); 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -