Share on Google+Share on Google+

Reshmi Rajasekharan
POSTAL ADDRESS VALIDATION
1 Answer(s)      5 years and 3 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

Ads

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
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
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 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
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
online address book
online address book  how to create online address book using jsp and mysql
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
validation files
validation files  If I place validation files in the folder where the action classes are present,will there any error arise
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
javascript validation
javascript validation  validation of comparing dropdownlist and textbox in javascript
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
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
NSURL Validation
NSURL Validation  How to validate a NSURL string using special character validation
form validation
form validation  how the form validation is done in jsf form using javaScript
Tutorials   
Java Spring Hibernate Struts Training code for programming How can I dynamically load user-entered data as content of jquery dialog? java webcam integration question java coding Fix Scrollbar position in a checkboxList after postback Information Save Alert Country wise redirection to files Interface in javascript connect database with javascript Zip Code ZipCode how to validate the email login How to play FLV video files on Ipad using HTML code or javascript code? Nitobi Grid is not working in IE10/IE11 jquery issue plese help RegEx Tree structure from json whose parents can be dragged and dropped from child newyorklife insurance getElementById not working javascript code for search in html file Implement The Skeleton Code Implement This Skeleton Code Mobile Automation using Appium Computer forensic application Java: Searching a string from doc files java linked list urgent !!! java linked list urgent!!! library management library management library management library management question Html form using JavaScript to display the table content java how to prevent no from unroundin off on clicking text box again in JSP and Jquery graph generation from xml design file display data from database in textbox when id entered in textbox Javascript Code for all fields how to get HTTP GET request value using javascript array Javascript Querry autocomplete(): Spring mvc with jquery: I am not getting correct value in the text filed. Please help me Create SpreadSheet same as excel using java applet Create SpreadSheet same as excel using java applet How to change focus among multiple select boxes? Write JQUERY Code Write JQUERY Code Converting jsp variable to java variable java

Ads

 
Advertisement null

Ads