help me to validate instantly
Posted: Mon Sep 21, 2009 10:55 pm
Hello friends
suppose i have 3 fields in my form...
<form action="" id="form2" method="post" name="form1" class="style1">
<label>1. Name</label>
<input type="text" name="name" size="30" maxlength="30" >
<label>2. Basic Pay</label>
<input type="text" name="basic" >
<label>3. Date of Birth</label>
<input name="BIRTH_YEAR" type="text" size="4" maxlength="4" >
/
<input name="BIRTH_MONTH" type="text" size="2" maxlength="2" >
/
<input name="BIRTH_DATE" type="text" size="2" maxlength="2" >
help me to write a javascript in which when i enter name:12445 (Error) and as soon as i jump to the next entry(Basic pay) it should display the error that "please enter only character value."
this will go on untill i enter all correct values
suppose i have 3 fields in my form...
<form action="" id="form2" method="post" name="form1" class="style1">
<label>1. Name</label>
<input type="text" name="name" size="30" maxlength="30" >
<label>2. Basic Pay</label>
<input type="text" name="basic" >
<label>3. Date of Birth</label>
<input name="BIRTH_YEAR" type="text" size="4" maxlength="4" >
/
<input name="BIRTH_MONTH" type="text" size="2" maxlength="2" >
/
<input name="BIRTH_DATE" type="text" size="2" maxlength="2" >
help me to write a javascript in which when i enter name:12445 (Error) and as soon as i jump to the next entry(Basic pay) it should display the error that "please enter only character value."
this will go on untill i enter all correct values