hi this is my coding for submit and reset button ... but the reset button seems not working ...is it related to the value?.......or the return thing ? thanks for the help..

<input type="submit" value="Submit" /> <input type="button" value="Reset" onclick="valid.reset(); return false" />

Recommended Answers

All 2 Replies

<html>
<body>
<form method="post" name="test">
Name : <input type="text" name="name" /><br />
<input type="submit" name="submit" value="submit" />
<input type="button" name="button" value="Reset" onclick="javascript: document.test.reset();" />
</form>
</body>
</html>

Reset works fine this way!

it worked.. Thank you..

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.