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



Home Answers Viewqa JavaScriptQuestions POSTAL ADDRESS VALIDATION

Have Programming Question? Ask it here!
 
 
 


Reshmi Rajasekharan
POSTAL ADDRESS VALIDATION
1 Answer(s)      2 years and 7 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:27 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
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
javascript validation
javascript validation  validation of comparing dropdownlist and textbox in javascript
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
validation and for email field it will check formate useing regularexpressions... rows="4" cols="4" name="address"></textarea> </td>...;html    Email Validation function checkEmail
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
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
validation query
validation query  where I should kept properties file inside struts Web application
Validation - Struts
Validation  what is the best way to use validation in Struts?either "validation.xml" or JavaScript
Address Bar
Address Bar       The address bar, originally known as URL (Universal Resources Locator) bar is a widget, which appears on the address bar beginning with http://. The http protocol
Validation of datepicker
Validation of datepicker  I have a datepicker in my JSp...the seleted dates are put in a text box. I want the alert the user from selecting future... a future date is entered..How to do this validation in javascript or jsp
Date Validation
Date Validation  Hi, I need Date Validation using java in spring framework. Please Anyone help me... Thanks in advance
comboBox validation
comboBox validation  dear sir. i want to know . how to validate radio button in struts using xml validation. thanks
Form Validation
Form Validation  Java script validation for checking special characters and white spaces and give an alert.Please help me urgent Thanks in advance
date validation
date validation  sir, pls provide date validation code in javascript..we want to include it into our master form..   Please visit the following link: http://www.roseindia.net/mysql/datevalidation.shtml
validation - Framework
validation  how to validate the action forms in struts? could you please explain how cross validation is done for date?  You go the following url: http://www.roseindia.net/struts/struts-login-form.shtml
form validation
; <td><textarea rows="4" cols="14" name="address" id="add">... want validation code,username minimum 8 char,password length must >6,and one
Struts validation
Struts validation  I want to put validation rules on my project.But after following all the rules I can't find the result. I have extended... validation rules,put the plugins inside strutsconfig.xml, put the html:errors tag
Validation - Struts
Validation  How can i use validation framework i don't understand am...; Hi friend, Phone validation using javaScript function... return true; } Phone Validation
Ajax form validation Example
Ajax form validation Example  Hi, I want to validate my ajax form. Please give me good code for Ajax form validation. Thanks   Hi, Read jQuery to validate Email Address tutorial. In this tutorial you will learn how
Validation doubt
Validation doubt  hi..... thanks for the other validation code. I have got that and implemented in my code but i have a doubt in that. As we try to put string values its not allowing to do tht it gives us message its right
 

 

 

DMCA.com