03-08-2011, 07:39 PM
|
#8 (permalink)
|
|
The Addict
Join Date: Aug 2008
Posts: 336
Thanks: 8
|
to test the code I posted (or any javascript code) you can put it anywhere in the html document, I will suggest right before the <body> tag closes. Oh an I forgot to return true; so it will be something like this.
javascript Code:
<script> document.getElementsByName("addimage").onSubmit = function (e) { document.getElementsByClassName("pleasewait") .setAttribute("style","display: block;"); return true; }; </script> </body>
In jQuery it would be something like:
(assuming the jQuery js file has already been included)
javascript Code:
<script> $('form[name="addimage"]').live('submit', function () { $('.pleasewait').css('display','none'); return true; }; </script> </body>
|
|
|
|