Results 1 to 2 of 2

Thread: File type text field is not resetting

  1. #1

    Default File type text field is not resetting

    I am using textfield of type file to upload a file. In mozilla form.reset does reset the file text field. However in IE it is not happening. How to clear the file textfield

  2. #2

    Default

    Got It and it is quick fix recreate the file component again
    fileField = document.getElementById("filefieldName");
    parentNod = fileField.parentNode;
    tmpForm = document.createElement(
    "form");
    parentNod.replaceChild(tmpForm,fileField);
    tmpForm.appendChild(fileField);
    tmpForm.reset();

    parentNod.replaceChild(fileField,tmpForm);

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •