I am using Jquery to hide/show divs on form submit - to hide the form and to show a "loading..." text and animation. It works fine in all browsers except Internet Explorer (my version is 9.0). In Internet Explorer the background animation does not animate, it appears as a static gif. Any ideas how to solve this problem?
Background animation was generated @ http://www.ajaxload.info/ website
script:
<script type="text/javascript">
$(document).ready(function(){
$("#enf").submit(function(){
$('#formdiv').hide();
$('#wait').show();
});
});
</script>
form
<div id="formdiv">
<form id="enf" name="enf" enctype="multipart/form-data" action="/upload4.php" method="post">
......form elements.......
<input type="submit" value="Send" name="add" />
</form>
</div>
<div id="wait">Please wait...</div>
css file:
#wait{
display:none;
text-align:center;
float:left;
width:778px;
background:#fdfdfd url('/loading.gif') no-repeat center center;padding:60px 0 20px 0;
}