starview
asked on
Clearing a form
I have an online I use and is very large and send alot of information by email.
When some one make a mistake or needs to change a certain part of the form and would like to clear the form of everything exceept certain parts of the form, like Name, address and so on.
Is there a way that if I place a clear bottom that it would only clear certain areas?
When some one make a mistake or needs to change a certain part of the form and would like to clear the form of everything exceept certain parts of the form, like Name, address and so on.
Is there a way that if I place a clear bottom that it would only clear certain areas?
ASKER
I guess I am not really folllowing you on this.
Will this only clear certain areas of the form? So they can be re-entered.
Please explain
Will this only clear certain areas of the form? So they can be re-entered.
Please explain
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
<head>
<script type="text/javascript">
function Validate(Form){
alert(Form.I1.value);
Form.I1.value=""
return false; // to not submit
// return true // to submit
}
</script>
</head>
<form id=F1 action="#" method="POST" onsubmit='return Validate(this)'>
<input id=I1>
<input id=I2>
<input type=submit>
</form>
</html>