hello, I am trying put a reset button which will only clear the text on description field. the other fields will remain same. i am using this but it does not work. it clears all the fields. What can i do to clear only the field i want to clear? <input type="button" value="Reset Form" onClick="this.form.reset()" /> PHP:
This is a javascript issue. Consider reposting @ the javascript forum, I'd also suggest posting at: http://www.dynamicdrive.com/forums/ For better answers
Instead of use the reset() to reset the whole form, just clear the filed what you want: <input type="button" value="Reset Form" onClick="this.form.description.value=''" /> PHP: