I have searched but only found how to disable a button, not how to do it if its the wrong extension and I dont know much about JavaScript… I want to disable the submit button of a upload form if the file extension is not gif, jpg, jpeg, png or swf. Similar to [url]http://www.imageshack.us/
The form looks like this:
[code=html]
<form action=”uploaded.php” method=”post” enctype=”multipart/form-data” name=”form1″>
<label for=”ufile”></label>
<div align=”left”>
<input name=”ufile” type=”file” class=”fileField” id=”ufile” size=”40″>
<input type=”submit” class=”Upload” value=”Upload!”>
</div>
<label for=””></label>
<div align=”left”></div>
</form>
Thanks ?