Hide JQuery UI Dialog text before "open"?
Hi all!
Does anyone have an idea how to hide the text within the div I'm making a Jquery dialog? It's pretty annoying that the text flashes when the page loads, you know, before Jquery gets to it..
Here is my code:
JS:
-
$(document).ready(function(){
$("#dialog_logOff").dialog({
modal: true,
autoOpen: false,
buttons: {
"Cancel": function() { $(this).dialog("close"); },
"No": function() { $(this).dialog("close"); logOff("0"); },
"Yes": function() { $(this).dialog("close"); logOff("1"); }
},
overlay: {
opacity: 0.7,
background: "black"
}
});
});
HTML:
-
<div id="dialog_logOff" title="Logout">Remove cookies?</div>