I have a simple task but fail to success. I am trying to show div on form submission for waiting but fail… Task as below:
<script type="text/javascript">
function ShowLoading(e)
{
document.getElementById('mkdd').style.display='';
}
</script>
Css:
#mkdd
{
display:none;
position:fixed;
top:0px;
width:100%;
height:700px;
background-color:DarkGray;
opacity:0.5;
}
Page Design:
<form id="form1" runat="server" onsubmit="ShowLoading()">
<table><tr><td>
<div id="mkdd">
<div id="mkd" style="width:100px; height:100px;position: fixed; top: 30%; left: 40%; z-index: 5000;">
<img width="30" height="30" src="Img/ajax-loader.gif" />
</div>
</div>
</td></tr></table>
</form>
What is the solution of it?. Where do I wrong?.