So I've trying to get Firefox to hide a div on page load without much success. It works in Chrome and IE though. My HTML looks like this
<div id="container">
<iframe src="www.google.com"></iframe>
</div>
<a href="#" id="showBtn">Show</a>
And my Javascript looks like this
$(document).ready(function () {
$("#container").dialog({ autoOpen: false, Title: "Hello, World!" });
$("#container").hide(0);
$("#showBtn").bind("click", function () {
$("#container").dialog("open");
});
});
So here's what I'm trying to do. On page load, the #container would be hidden and remain so until user clicks the 'Show' button.