document.ready() causing an error in IE 8

I'm trying to use document.ready in IE 8 and I keep getting an error that "The object does not support this property" when I load the page. I at the point where I'm simply trying to display an alert using document.read. Here is the code I'm using: In the Head tag I load the jquery file in the script tag, that is located just before the body closing tag I have the following: alert("typeof $: " + typeof $); $(document).ready(function () { alert("Number One"); }); THe first alert tells me that $ is a function. Then the error occurs once the browswer hits the document.ready line...... Does anyone have any ideas. I'm hoping to load a script that will allow for the selecting and deselecting of check boxes in unique columns in a gridview. Terry

以上就是document.ready() causing an error in IE 8的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » jQuery 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏