I'm working on a way to toggle the visibility of a Div element using JQuery:
$("#Progress").hide("fast");
But I want the #Progress div to be hidden by default.
<div style="height:30px;margin-top:5px">
<div id="Progress" style="visibility:hidden">
<div style="float:left"> <img src="../../../../Content/images/ProgressSpinner.gif"/></div>
<div> Saving.......</div>
</div>
</div>
When I try to hide it every time the page loads using JQuery, there's a flashing effect due to constant hiding onload. I really want it hidden until I choose to show it with JQuery.
I attempted using the "Visibility" attribute in CSS, but then my JQuery .Show("fast") command had no impact and the div remained hidden.
So what is the best approach to keep a div hidden by default so that a JQuery .Show command can reveal it when needed, such as when a link is clicked?
$(document).on("click", ".edit-link", function (e) {