jquery display block / none -


hi new jquery 1 me show div , hide dive after trasnsition here script

jquery(function($) {      $('a.panel').click(function() {         var $target = $($(this).attr('href')),             $other = $target.siblings('.active'),             animin = function () {                 $target.addclass('active').show().css({                     left: -($target.width())                 }).animate({                     left: 0                 }, 300);             };          if (!$target.hasclass('active') && $other.length > 0) {             $other.each(function(index, self) {                 var $this = $(this);                 $this.removeclass('active').animate({                      left: -$this.width()                 }, 300, animin);             });         } else if (!$target.hasclass('active')) {             animin();         }     });  }); 

if using id div

$('#dividhere').attr('display','block') //to show $('#dividhere').attr('display','none') //to hide 

if using class div

$('.divclasshere').attr('display','block') //to show $('.divclasshere').attr('display','none') //to hide 

Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -