开发者

jQuery code not working in 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜