i got simple mvc @html.beginform
id of simplespinform
stuff. when click on submit button i'm showing loading gif spinns while form submitted. works on chrome , ff in ie stands still. suggestions how can make work on simple way?
my div holds gif:
<div id="myloadingelement" style="display: none"> <img src="/content/ajax-loader.gif" alt="loading..." /> </div>
my script runs when button clicks:
<script> $("#simplespinform").submit(function (e) { $(".maindiv").css("opacity", 0.9).fadein(300, function () { $("#myloadingelement").show(); }); }); </script>
Comments
Post a Comment