Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa JavaScriptQuestions POSTAL ADDRESS VALIDATION
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Reshmi Rajasekharan
POSTAL ADDRESS VALIDATION
1 Answer(s)      2 years and 10 months ago
Posted in : JavaScript Questions


hi sir, we are doing our project "PAYROLL SYSTEM" in java. please provide postal address validation in javascript.. yours sincerely Reshmi


Advertisement
View Answers

January 4, 2012 at 4:28 PM


<html>
<script>
var re = /^\d{5}([\-]\d{4})?$/;
function isValidPostalCode(name) {
var nameValue=document.getElementById("name").value;

if(nameValue == '' || nameValue == null ){
alert('This field is Required');
document.getElementById("name").focus();
return false;
}
else if(!re.exec(nameValue)){
alert('Enter a valid postal code');
document.getElementById("name").focus();
return false;
}
else{
alert('Valid');
}
return true;
}
</script>
Enter Postal Address: <input type="text" id="name" name="name">
<input type="button" value="Submit" onclick="isValidPostalCode(name);">
<html>


Related Tutorials/Questions & Answers:
POSTAL ADDRESS VALIDATION
POSTAL ADDRESS VALIDATION  hi sir, we are doing our project "PAYROLL SYSTEM" in java. please provide postal address validation in javascript.. yours sincerely
POSTAL ADDRESS VALIDATION
POSTAL ADDRESS VALIDATION  hi sir, we are doing our project "PAYROLL SYSTEM" in java. please provide postal address validation in javascript.. yours sincerely
Advertisements
POSTAL ADDRESS VALIDATION
POSTAL ADDRESS VALIDATION  hi sir, we are doing our project "PAYROLL SYSTEM" in java. please provide postal address validation in javascript.. yours sincerely
postal address validation
postal address validation  hello sir/madam, currently we are doing some application level projects...for this we need to validate postal address..we dont have any apt source code regards to postal address validation
address1 and address 2 validation
address1 and address 2 validation  Hi sir/Madam, I m doing One Project Quite now. I would like to validate address that comprises of door numbers,street name, area name .Please provide java-script to do the same.Thanks in advance
IP Address validation
IP Address validation  hi,I m now working with my final yr project,nd stuck in th middle i don't know how to validate the IP address in a JText field...(ie) the user shld enter the IP address in JTxt and when he hit the 'Submit
Client Side Address Validation in Struts
Client Side Address Validation in Struts      ... AddressForm.emailAddress=E-mail address Developing Validation rules...;!-- Address form Validation--> <form name="AddressForm">   <
jQuery to validate Email Address Validation
to develop the  program for Email Address Validation Step 1: Create php...jQuery to validate Email Address   ... Address; if data equals to "error2"  It means You not entered
validation
validation  validation
validation
validation  we are doing payroll system project in java.So pls provide the complete validation code for employee master form
Address tag in HTML5, Definition of address tag in html5.
, postal address, phone number etc. The  address tag is must not be used for describing the postal address and email address because it is not appropriate for all postal and email address. If the address tag is used within body element
validation.....
validation.....  hi.......... thanks for ur reply for validation code. but i want a very simple code in java swings where user is allowed to enter only numerical values in textbox , if he enters string values then it should
validation
Validation method valid the in put. otherwise call the javascript onsubmit to check... code.Ok if you use struts then you can use Validation method valid the in put
Validation
); JLabel label=new JLabel("JTable validation Example",JLabel.CENTER); JPanel panel=new JPanel(); panel.add(scroll); JFrame frame=new JFrame("JTable validation
validation
validation  please help me to check validation for <form> <table class="form"> <tr> <td class="col1"> <label>Sno:</label> </td> <td
email validation
email validation  during email validation.... after domain name which it means if example example@gmail.co .... this address allowed by any validation program .... but i want to show invalid email address because domain name com
email validation
email validation  during email validation.... after domain name which it means if example example@gmail.co .... this address allowed by any validation program .... but i want to show invalid email address because domain name com
online address book
online address book  how to create online address book using jsp and mysql
Help with an address book program! - Java Beginners
the postal code for the address. * @param postalCode The new postal code...Help with an address book program!  I have a very long question... it to do: * The address book application is command line based. It takes
MAC ADDRESS - Java Beginners
MAC ADDRESS  codings to fetch MAC address of a system in Java
hide the url in address bar
hide the url in address bar  how i can hide url in address bar????? i have lot of jsp pages when i call one jsp in address another jsp page name also displayed in the address bar? url not visible to endusers please tell me any
Getting IP Address
Getting IP Address  Hi... i want to get the ip address of the current machine running my jsp program.... example: my ip is 172.16.11.247... from... get the ip address 247 in database but i need to get the ip address
Getting IP Address
Getting IP Address  Hi... i want to get the ip address of the current machine running my jsp program.... example: my ip is 172.16.11.247... from... get the ip address 247 in database but i need to get the ip address
miniproject on address book in java
miniproject on address book in java  hi rose india, i urgently need an miniproject on address book in java(netbeans ide 6.9.1) using mysql..... Though not of address book but operations are same i.e add,delete,search,update
Address book in iphone
Address book in iphone  hello.. how can we use address book in our iphone app ???   hello Nice Question first of all you have...{ return NO; } this is the whole process for implement address book in you
validation files
validation files  If I place validation files in the folder where the action classes are present,will there any error arise
How to find MAC(Hardware address) address of access point
How to find MAC(Hardware address) address of access point  How can i find out MAC address of Access Point using java
javascript validation
javascript validation  validation of comparing dropdownlist and textbox in javascript
HTTP URL Address Encoding in Java
HTTP URL Address Encoding in Java  HTTP URL Address Encoding in Java
Getting IP address of All the machines
Getting IP address of All the machines  Program how to fetch All the IP address on my domain(LAN) in java
javascript validation
validation and for email field it will check formate useing regularexpressions... rows="4" cols="4" name="address"></textarea> </td>...;html    Email Validation function checkEmail
Advertisements
 

 

 

DMCA.com