Validating Emp ID Reply

Ads
 

Validating Emp ID Reply

View Answers

August 11, 2008 at 3:57 PM

hai frnd....
The change i made is for accepting numerals only.....
If u type any characters...it will show u an alert window telling "Please input valid emp no"
this msg u can type wat ever u want...
but dont make any change in the variable anum

thanks and regards
prashu

August 11, 2008 at 4:23 PM

hai frnd....
here i have mistyped as phone....
var anum=/(^\d+$)|(^\d+\.\d+$)/
if (anum.test(phone))
return true
else{
alert("Please input valid emp no!")
return false
}



please use ur field name...

var anum=/(^\d+$)|(^\d+\.\d+$)/
if (anum.test(id))
return true
else{
alert("Please input valid emp no!")
return false
}



thanks and regards,
Prashu
[email protected]

Ads









Related Tutorials/Questions & Answers:
validating email id
validating email id  how to validate the email id ?   <...=""; return false; } } </script> <form id="form...;tr><td>Email </td><td><input type="text" id="email" ><
get details of employee after enter the emp_id
get details of employee after enter the emp_id  how to get employee details after entered the emp_id from database after that we have three more option add new,modify and delet employee   Please visit the following
Advertisements
get details of employee after enter the emp_id
get details of employee after enter the emp_id  how to get employee details after entered the emp_id from database after that we have three more option add new,modify and delet employee   Please visit the following
Finding MAX value from emp_id column using SQL query?
Finding MAX value from emp_id column using SQL query?  I need to select maximum of the Emp_id values from SQL server 2005 table.I was using... of emp id from the table.(Actually it picks up Max value using by looking at 1st
Validating XML
Validating XML  Hi, I have a string containing data in XML format. I have to Validate this xml data. Is there any method in java that allows strings as input to validate xml?   Please visit the following link: http
validating web pages
validating web pages  How to validate HTML web pages
id
id  how to find date of birth and gender in id in html with the help of javascript
Validating image size
Validating image size  How to validate image size to 2MB in javascript which is updating to mysql database
reply must
reply must  is it critical to do a software job based on games(java) i know core java & advanced java basics only please give me answer
Validating the password field
Validating the password field  When the validate method returns back to the registration page the password field get cleared there by asking again one more time to enter the password field at the time of re-submitting the form
ModuleNotFoundError: No module named 'reply'
ModuleNotFoundError: No module named 'reply'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'reply' How to remove the ModuleNotFoundError: No module named 'reply'
ModuleNotFoundError: No module named 'emp'
ModuleNotFoundError: No module named 'emp'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'emp' How to remove the ModuleNotFoundError: No module named 'emp' error
validating username and password from database
validating username and password from database  Hello sir, i am developing a login page. i want that when i fill data in text fields. it validate data from database. if enter data is match from database. page goes to next page
Reply me soon.........
Reply me soon.........  Any body plzz help.....how to get d checked details from previous page to current page and den insert into table
PLease reply its urgent
PLease reply its urgent   Write a java function that has the signature ΓΆβ?¬Ε?Public static int clock Inter sections(int hours, int minutes)ΓΆβ?¬Β? That takes a number of hours and minutes (up to several days), and returns
Reply Me - Java Beginners
Reply Me  Hi deepak, your sending web application is good (alphabetical searching dropdown menu) Steps:- 1:-searching is good 2:- user click inser vtton then open the pop-up windows this is write 3
hi plzz reply
hi plzz reply  in our program of Java where we r using the concept of abstraction Plz reply i m trying to learn java ...   means in language of coding we r not using abstraction this will be used only for making ideas
Version of com.klinkerapps>wearable-reply dependency
List of Version of com.klinkerapps>wearable-reply dependency
ModuleNotFoundError: No module named 'emp-ext'
ModuleNotFoundError: No module named 'emp-ext'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'emp-ext' How to remove the ModuleNotFoundError: No module named 'emp-ext
ModuleNotFoundError: No module named 'emp-ide'
ModuleNotFoundError: No module named 'emp-ide'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'emp-ide' How to remove the ModuleNotFoundError: No module named 'emp-ide
ModuleNotFoundError: No module named 'emp-ide'
ModuleNotFoundError: No module named 'emp-ide'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'emp-ide' How to remove the ModuleNotFoundError: No module named 'emp-ide
ModuleNotFoundError: No module named 'emp-offline'
ModuleNotFoundError: No module named 'emp-offline'  Hi, My Python... 'emp-offline' How to remove the ModuleNotFoundError: No module named 'emp-offline' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'emp-webrepl'
ModuleNotFoundError: No module named 'emp-webrepl'  Hi, My Python... 'emp-webrepl' How to remove the ModuleNotFoundError: No module named 'emp-webrepl' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'emp-webrepl'
ModuleNotFoundError: No module named 'emp-webrepl'  Hi, My Python... 'emp-webrepl' How to remove the ModuleNotFoundError: No module named 'emp-webrepl' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'emp-webrepl'
ModuleNotFoundError: No module named 'emp-webrepl'  Hi, My Python... 'emp-webrepl' How to remove the ModuleNotFoundError: No module named 'emp-webrepl' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'emp-webrepl'
ModuleNotFoundError: No module named 'emp-webrepl'  Hi, My Python... 'emp-webrepl' How to remove the ModuleNotFoundError: No module named 'emp-webrepl' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'emp-wsb'
ModuleNotFoundError: No module named 'emp-wsb'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'emp-wsb' How to remove the ModuleNotFoundError: No module named 'emp-wsb
ModuleNotFoundError: No module named 'emp-wsb'
ModuleNotFoundError: No module named 'emp-wsb'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'emp-wsb' How to remove the ModuleNotFoundError: No module named 'emp-wsb
ModuleNotFoundError: No module named 'emp-wsb'
ModuleNotFoundError: No module named 'emp-wsb'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'emp-wsb' How to remove the ModuleNotFoundError: No module named 'emp-wsb
ModuleNotFoundError: No module named 'emp-webrepl'
ModuleNotFoundError: No module named 'emp-webrepl'  Hi, My Python... 'emp-webrepl' How to remove the ModuleNotFoundError: No module named 'emp-webrepl' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'emp-wsb'
ModuleNotFoundError: No module named 'emp-wsb'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'emp-wsb' How to remove the ModuleNotFoundError: No module named 'emp-wsb

Ads