function fileUpload() {\r
var form = $form[0];\r
\r
- if ($(':input[@name=submit]', form).length) {\r
+ if ($(':input[name=submit]', form).length) {\r
alert('Error: Form elements must not be named "submit".');\r
return;\r
}\r
$.fn.clearFields = $.fn.clearInputs = function() {\r
return this.each(function() {\r
var t = this.type, tag = this.tagName.toLowerCase();\r
- if (t == 'text' || t == 'password' || tag == 'textarea')\r
+ if (t == 'file' || t == 'text' || t == 'password' || tag == 'textarea')\r
this.value = '';\r
else if (t == 'checkbox' || t == 'radio')\r
this.checked = false;\r