I want the submit button to disappear after it's clicked and a new layer to show in its place.
Here is what I have so far:
<div id=uploadform>
<form enctype="multipart/form-data" action='' method='POST'>
<input type="file" name="imagefile" class=browse>
<p><input type='submit' value='Upload' class=uploadsubmit onClick="if($(this).('#loading').css('display') == 'none') { $(this).('#loading').show('fast'); $(this).hide('fast'); } return false;">
<input type='hidden' value='1' name='submitted' />
</form>
</div>
<div id=loading style="display:none;"><img src=upload.gif></div>
Nothing happens when I click submit, no show/hide, no form action.
What should I do? (using latest version of jQuery)