M
Monte Chan
Hi all,
I have the following codes,
<script language="JavaScript">
function check_stuff(field)
{
alert("blank out the field now");
field.value = "";
}
</script>
<form name="test_form">
<input type="File" name="test_upload" size="50">
<input type="Button"
onclick="check_stuff(document.test_form.test_upload)" value="Click Me">
</form>
What I am trying to do is, when the users click the button, it would
blank out the path in the test_upload field. The problem is, the
test_upload field does not get cleared out and it is not giving me an
error either. May I ask how can I clear out the file field?
Thanks in advance,
Monte
I have the following codes,
<script language="JavaScript">
function check_stuff(field)
{
alert("blank out the field now");
field.value = "";
}
</script>
<form name="test_form">
<input type="File" name="test_upload" size="50">
<input type="Button"
onclick="check_stuff(document.test_form.test_upload)" value="Click Me">
</form>
What I am trying to do is, when the users click the button, it would
blank out the path in the test_upload field. The problem is, the
test_upload field does not get cleared out and it is not giving me an
error either. May I ask how can I clear out the file field?
Thanks in advance,
Monte