I have a form which has an input of type image as follows.
<input type="image" id="submit" src="red_btn.png">
Once this image is clicked to submit the form, i change the image to an animated gif to show a spinner
$('form').submit(function(e){
//e.preventDefault();
$('#submit').attr("src", "loading.gif");
});
However, there is no animation. But when i prevent form submission, the gif animates.
This is on FF 16
Pls help.