ketan
ketan

Reputation: 19341

$(document).ready not work in IE 7

i am using following code in other browser(mozilla, chrome etc.) then working fine but if i use that same code in IE 7 then it's not working(work in IE 8+). no error given to me.

$(document).ready(function(){   
    alert("hello");
});

Upvotes: 1

Views: 1426

Answers (1)

kayen
kayen

Reputation: 4868

I am guessing that there might be an error above the jQuery code block which might be stopping the execution on IE7.

Do this - load the page on IE7. On the bottom-left corner of the browser, if there's a yellow symbol double click on it and see what line is causing the execution to fail.

Upvotes: 1

Related Questions