I am trying to show and hide Div element with JQuery:
$("#Progress").hide("fast");
However I need the set the div #Progress element as hidden to start with.
<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>
It seems that if I use JQuery to hide it every time I load, I get a flashing effect as it keeps hiding it onload. So I really want it to be hidden until I show in JQuery.
I did try using the CSS "Visibility" attribute, but my JQuery .Show("fast") command has no effect on it, so remains hidden.
So what is the best way to default a div to hidden such that a JQuery .Show command can show the Div when relevant ie when a link is clicked.
$(document).on("click", ".edit-link", function (e) {