Hi, I have a problem.
I need clear the field <input type="file"> using jQuery. The jQuery script is: $(document).ready(function(){ $('#clearButton).click(function(){ $('.file).val(''); }); }); The Form declaration is: <form enctype="multipart/form-data" id="form"> <fieldset> <legend>Fields</legend> <table> <tr> <td>File</td> <td><input type="file" id="fileField" class="file" /></td> </tr> <tr> <td>Description</td> <td><input type="text" id="description" /></td> </tr> <tr> <td><input type="button" id="clearButton" value="Clear"/></td> </tr> </table> </fieldset> </form> If use Firefox, this code run correctly, but If use IE7, don't run. I believe that is a bug. Somebody can help me? Thanks. Renato.