Actually, what I was trying to do was to clear the value such that no file is uploaded when the user clicks on a checkbox. I found another way to prevent the file upload - and that is to disable the file input field. A follow up question: How can I perform error checks on the filename specified by the user. I want to see if the file exists on the user's file system and present an error dialog if there are problems. Thanks, -Arvind
Joined: Nov 08, 2001
When a form element is disabled, the form acts like it is not there when the form is being submmited. You can not chnage the value of the drop down for security reasons.