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');
});
精彩评论