<html>
<body>
<input type="text" value="">
<input type="reset" value="reset"/>
</body>
</html>

why is my reset button not resetting the text box?

Recommended Answers

All 3 Replies

How are you using it???

It cant reset a form when there is no form.... Duh?

<html>
<head>
</head>
<body>
[B]<form method="post" action="myhandler.php">[/B]
Text: <input type="text" name="textfield" /><br />
<input type="reset" name="resetbutton" value="Reset" /><input type="submit" name="submitbutton" value="Submit Text" />
[B]</form>[/B]
</body>
</html>

if solved then mark it as solved

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.