logo

New Response

« Return to the main article

You are replying to:

    • avatar
    • Denny McEntire
    • Posted on Tue 31 Jan 2006

    I figured out another way. I used the setAttribute() method to change the type to "text", then set the value to "", and changed the type back to "file".

    Here's the code: t = /*set this to be an DOM reference to the file upload field*/; t.setAttribute("type", "text"); t.value = ""; t.setAttribute("type", "file");

    Denny

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: