Not sure where to go with this.
I have a form, which when submitted, I would like to display a "processing, please wait" message. (The form has photos to upload so might take a while)
I have the following jQuery
$(document).ready(function() {
$('#addnews').submit(function() {
$('#loading').show();
});
});
addnews is my form id, and the div in my template is
<div id="loading">Please wait, your news is being submitted...
<img src="/-/images/addwalk-loader.gif"/>
</div>
with this css
#loading{
display:block;
display: none;
background:#399f8a;
color:#FFFFFF;
font-weight: bold;
text-align: center;
border-radius: 3px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
padding:10px;
margin-top: 10px;
}
.loading img{
float: right;
}
Now this is working when I hit Submit in FF(Mac), Chrome(Mac&PC) and IE9(although the gif does not animate, but I know thats a separate issue)
but it does not seem to want to work on Safari on the mac. Any ideas, if theres something in what I have thats stopping it? Or what the best way to debug it is? Thanks!