Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

londonweb

macrumors 6502
Original poster
Sep 14, 2005
260
0
london
Does anyone know how to reset an individual field in an HTML form, using Javascript? Obviously there's the reset() method which clears everything, but I have a series of file upload fields which I want users to be able to clear individually should they make a mistake, so far I can't find anything. I've tried using something like this:

document.myform.myfield.value = 0;

But this has no effect it seems.

Any ideas?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.