开发者

slideToggle() (jQuery) is not woking in IE6

开发者 https://www.devze.com 2023-03-04 16:27 出处:网络
I have simple call to slideToggle like below $(document).ready(function(){ $(\"#Btn_WebCategories\").click(function(){

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 slid开发者_StackOverfloweToggle 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.

})


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.


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");
  });


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消