Clearing Contact Form Fields

How do I clear out the fields on a contact form.  Whenever I start typing in the field, anything that has been input before is still there.

<form id="contactform" method="post" action="index.php" maxlength="50" size="30" class="input">
												<div  class="wrapper">
													<select name="subject" id="subject" class="input">
			  										<option value="Inquiries">Inquiries</option>
			  										<option value="Press">Press</option>
			  										<option value="Employment">Employment</option>
                									<option value="Proposals">Proposals</option>
                                                <div  class="wrapper">
													<input  type="text" name="name" maxlength="50" size="30" class="input">
												<div  class="wrapper">
													<input  type="text" name="email" maxlength="80" size="30" class="input">
												<div  class="textarea_box">
													<textarea  name="comments" maxlength="1000" cols="30" rows="6" class="input"></textarea>
												<div class="wrapper">
													<a href="#" class="button1" onClick="document.getElementById('contactform').reset()"><span></span><strong>Clear</strong></a>
													<a href="#" class="button1" onClick="document.getElementById('contactform').submit()"><span></span><strong>Send</strong></a>

Open in new window

then Contact
Who is Participating?
Ray PaseurConnect With a Mentor Commented:
The autocomplete attribute specifies whether a form should have autocomplete on or off.  The default is "on" so if you omit this attribute you're getting autocomplete.  A slightly deeper explanation is available here:
DS928Author Commented:
Bingo and Thank you!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.