Reputation: 3658
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.
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
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