jacks sparrow
jacks sparrow

Reputation: 1

slideToggle() (jQuery) is not woking in IE6

I have simple call to slideToggle like below

$(document).ready(function(){
$("#Btn_WebCategories").click(function(){
   $("q").slideToggle("slow");  //  slide
  });

//
// Second part: below not working. 
//
  $("#ExclBlockBtn").click(function(){
  $("ExWeb").slideToggle("slow");
  });

In IE6 slideToggle on "q" element is working fine, but in the second part ("ExWeb" element) which is much similar to first one is not working. Also above code is working fine in FF4.0.

I have tried by giving speed parameter differently.

Thanks in advance.

})

Upvotes: 0

Views: 322

Answers (3)

Dr.Molle
Dr.Molle

Reputation: 117334

IE6 doesn't know <ExWeb/> , it's not a valid HTML-tagName(assuming you're working on an (X)HTML-document). <q/> is a valid tagName.

Upvotes: 0

Denis de Bernardy
Denis de Bernardy

Reputation: 78463

Ask yourself if you really need it to work in IE6. Consider:

http://www.theie6countdown.com/default.aspx

If anything, the stats published by Microsoft reveal that, for all intents and purposes, IE6 is not used except on in developing countries (pirated copies of WinXP?), and on corporate networks that need it for their intranets.

Upvotes: 1

JK.
JK.

Reputation: 21808

Looks like you are missing the # in your selector: #q and #ExWeb

$(document).ready(function(){
$("#Btn_WebCategories").click(function(){
   $("#q").slideToggle("slow");  //  slide
  });

//
// Second part: below not working. 
//
  $("#ExclBlockBtn").click(function(){
  $("#ExWeb").slideToggle("slow");
  });

Upvotes: 0

Related Questions