I got a simple MVC @HTML.BeginForm
with the ID of SimpleSpinForm
that does stuff. When I click on a submit button i'm showing a loading GIF that spinns while the form get submitted. It works perfectly on Chrome and FF but in IE it just stands still. Any suggestions how I can make it work on a simple way?
My DIV that holds the gif:
<div id="myLoadingElement" style="display: none">
<img src="/Content/ajax-loader.gif" alt="Loading..." />
</div>
My Script that runs when button clicks:
<script>
$("#SimpleSpinForm").submit(function (e) {
$(".MainDiv").css("opacity", 0.9).fadeIn(300, function () {
$("#myLoadingElement").show();
});
});
</script>