Unknown User
Unknown User

Reputation: 3658

jquery - document ready is not firing

I have a web page with multiple iframes in it.

I've created a custom dropdown looking at this.

I've created the same dropdown in all the iframes. And when I load the page.

Dropdown works fine in all the iframes when opened in Chrome browswer.

But when I open the same in Mozilla. Only in the one page the dropown working fine.

In other iframes when navigated to it. It's not working fine. It's appearing like this.

Image1

Someone help me out. I did google and found these posts.

$(document).ready not working, javascript Document ready firefox (jQuery). But it didn't help me out.

Thanks in advance.

Upvotes: 0

Views: 430

Answers (1)

Unknown User
Unknown User

Reputation: 3658

I got it working by replace $(document).ready(function() { ... }) to $(windown).load(function() { ... }) in the .js file which is loaded int he index.html file.

Upvotes: 1

Related Questions