开发者

jQuery code not working in Internet Explorer

开发者 https://www.devze.com 2023-04-01 00:43 出处:网络
The following jQuery code works in all browsers that I\'ve tested it with, except for Internet Explorer:

The following jQuery code works in all browsers that I've tested it with, except for Internet Explorer:

$("#post-body").click(function() {
   $('.submit-post').slideDown('slow', function() {});
});  

Can anyone help me understand why it's not working, and how I can res开发者_运维问答olve it? Thanks in advance for any help.


Try getting rid on the empty anonymous function:

 $("#post-body").click(function() {
    $('.submit-post').slideDown('slow');
   });  


Try this:

    $("#post-body").live("click", function() {
        $('.submit-post').slideDown('slow');
    });
0

精彩评论

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