Home Answers Viewqa Java-Beginners please send me javascript validation code

 
 


ashutosh
please send me javascript validation code
3 Answer(s)      4 years and 5 months ago
Posted in : Java Beginners

View Answers

January 14, 2009 at 1:00 AM


Hi friend,

<html>
<title>user information</title>
<head>

<style>
a.first:link { color: green;text-decoration:none; }
a.first:visited{color:green;text-decoration:none;}
a.first:hover{color:yellow;text-decoration:none;}

a.second:link { color: #400000;}
a.second:visited{color:#400000;}
a.second:hover{color:white;}

body{
background-color:#D2B48C;}
td{text-color:#400000 ;
}
</style>

<script type="text/javascript">

function validateForm(theForm){

if(theForm.fname.value==""){

//Please enter username

alert("Please enter User Name.");

theForm.fname.focus();

return false;

}

if(theForm.lname.value==""){
//please enter Last Name
alert("Please enter Last Name.");
theForm.lname.focus();
return false;
}

if(theForm.address.value==""){
//please enter Address
alert("Please enter Address.");
theForm.address.focus();
return false;
}

if(theForm.zcode.value==""){
//please enter zipcode
alert("Please enter zipcode.");
theForm.zcode.focus();
return false;
}

if(theForm.country.value==""){
alert("Please enter country name");
theForm.country.focus();
return false;
}

if (theForm.cardType.value=="") {
alert("You must choose at least one option");
theForm.cardType.focus();
return false;
}



if(theForm.cnumber.value==""){
alert("Please enter card Number!");
theForm.cnumber.focus();
return false;
}

if(theForm.dexpiry.value==""){
alert("Please select card Expiry Date!");
theForm.dexpiry.focus();
return false;
}


return true;
}
</script>
</head>

January 14, 2009 at 1:01 AM


<body>
<center>
<table border="0" align=center>
<tr>
<td>
<font class=first size=10 color=black><i><b>Real Estate Company</b></i></font></tr>
</table>

<table border="0" align=right>
<tr>
<td><a href="sign in.html"><font size=4 color=black>sign in</font>
<td><a href="sign Up.html"><font size=4 color=black>sign up</font>
</tr>
</table><br><br>
<hr></hr>
<table border="0" align="center">
<tr>
<td><a class="first" href="home.html"><b><font size=4>Home</font></b></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<td><a class="first" href="AboutUs.html"><b><font size=4>AboutUs</font></b></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<td><a class="first" href="propertysearch.html"><b><font size=4>PropertySearch</font></b></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<td><a class="first" href="gallery.html"><b><font size=4>Gallery</font></b></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<td><a class="first" href="quicksearch.html"><b><font size=4>QuickSearch</font></b></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<td><a class="first" href="Link Your Property.html"><b><font size=4>Link Your Property</font></b></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a class="first" href="contactus.html"><b><font size=4>ContactUs</font></b></a>
</table>
<hr></hr>
<marquee><font color="white" size=6><b>Data about shares/other realestate information...</b></font>
</marquee>
<hr></hr>
<br>
<br>

<form method="GET" action="Insertdata" onsubmit="return validateForm(this);">
<td>
<u>Billing Information:</u></td><br><br>

<td>First Name*&nbsp;<input type="text" name="fname"></td><br>
<td>Last Name*&nbsp;&nbsp;<input type="text" name="lname"></td><br>
<td>Address*&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name="address"></td><br>
<td>City&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="text" name="city"></td><br>
<tr></tr><tr><td>State&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td></tr>
<tr><td><select>
<option value="-1">Select State</option>
<option value="-1">Andaman and Nicobar</option>
<option value="-1">Andhra Pradesh </option>
<option value="-1">Arunachal Pradesh </option>
<option value="-1">Assam</option>
<option value="-1">Bihar </option>
<option value="-1">Chandigarh </option>
<option value="-1">Chhattisgarh </option>
<option value="-1">Dadra and Nagar </option>
<option value="-1">Daman and Diu </option>
<option value="-1">Delhi </option>
<option value="-1">Goa </option>
<option value="-1">Gujarat </option>
<option value="-1">Haryana </option>
<option value="-1">Himachal</option>
<option value="-1">Jammu and Kashmir </option>
<option value="-1">Jharkhand </option>
<option value="-1">Karnataka </option>
<option value="-1">Kerala </option>
<option value="-1">Lakshadweep</option>
<option value="-1">Madhya Pradesh </option>
<option value="-1">Maharashtra </option>
<option value="-1">Manipur </option>
<option value="-1">Meghalaya </option>
<option value="-1">Mizoram </option>
<option value="-1">Nagaland </option>
<option value="-1">Orissa</option>

January 14, 2009 at 1:02 AM


<option value="-1">Puducherry </option>
<option value="-1">Punjab </option>
<option value="-1">Rajasthan </option>
<option value="-1">Sikkim </option>
<option value="-1">Tamil Nadu </option>
<option value="-1">Tripura </option>
<option value="-1">Uttarakhand </option>
<option value="-1">Uttar Pradesh </option>
<option value="-1">West Bengal</option>
</option>
</select><br>

<td>Zipcode*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name="zcode"></td><br>
<td>Country*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name="country"></td><br>
<td>Phone&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="text" name="phone"></td><br><br>
<td><u>Payment Information:</u></td><br><br>
Card Type*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<select name="cardType" >
<option value='-1'>select</option>
<option value='0'>Master Card</option>
<option value='1'>Visa</option>
<option value='2'>American express</option>

</select><br><br>
</select>
<td>Card Number*&nbsp;<input type="text" name="cnumber"></td><br><br>
<td>Date of Expiry*&nbsp;<input type="text" name="dexpiry"></td><br><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<td><input type="submit" name="submit" value="Continue"></td>
<td><input type="reset" value="Reset"></td>

</form>
</center>

</body>
</html>

------------------------------

Thanks

Amardeep









Related Pages:
please send me javascript validation code - Java Beginners
please send me javascript validation code  hallo sir , please send me java script code for this html page.since i want to do validation.i am a new user in java ....please send me its urgent
please send me java script for html validation - Java Beginners
please send me java script for html validation  please send me code for javascript validation .........please send me its urgent a.first:link { color: green;text-decoration:none; } a.first:visited{color:green;text
send me javascript code - Java Beginners
send me javascript code  please send me code javascript validation code for this html page.pleaseeeeeeeee. a.first:link... after javascript validation : a.first:link { color: green;text
Javascript validation code
,email required etc) Kindly please send me the code as soon as possible...Javascript validation code  Hi, I need a javascript validation code for the following fields 1)Name 2)Email 3)Mobile 4)City 5)State 6)Product type 7
Javascript validation code
..it should display enter the field required Kindly please send me the code...Javascript validation code  Hi, I need a javascript validation code for the following fields 1)Name 2)Email 3)Mobile 4)City 5)State 6)Product type 7
javascript validation
button.. please send me the code for this as i am new to the dot net field...javascript validation  i have 4 buttons in my project like save,find,modify,clear and exit. Here my problem is i have to validate in javascript like
validation
Validation method valid the in put. otherwise call the javascript onsubmit to check... file.if user not upload should send error(i created folder when user upload file it goes to another folder.) this is my code i used this method
validation
validation  please help me to check validation for <form>...; in this code i have to get error when sno,date,custmername,contactno,datepickerfoloowupdescription leave empty please send me reply wating
how to send email please give me details with code in jsp,servlet
how to send email please give me details with code in jsp,servlet  how to send email please give me details with code in jsp,servlet
pls send me the code for login and register - Java Beginners
pls send me the code for login and register  pls immediately send me the jsp code for login and registration with validation with java bean in mysql database...  Hi friend, This login action code
Javascript validation - Java Beginners
Javascript validation  Hi I have developed the following function for the validation of Zip code,the problem is, when user enters the valid zip code... the text box's background color should change green? Please help me how can I solve
Validation code - Java Interview Questions
Validation code  Hi, Anyone can please send me a javascript function for password filed validation (the field will only take characters as input not other). Thanx in advance  Hi friend, code to solve the problem
javascript validation
javascript validation  my problem is following code is my form i want validation and for email field it will check formate useing regularexpressions. <html> <script src="combovalidate1.js" type="text/javascript
javascript form validation
javascript form validation  How to validate radio button , dropdown list and list box using onsubmit event..please give me a sample example..If we do...() { if(document.f1.choose.selectedIndex==""){ alert ( "Please select Dropdown value!" ); return
please help me.
please help me.  Please send me the validation of this below link. the link is http://www.roseindia.net/answers/viewqa/JSP-Servlet/9584-JSP-Servlet-Search-and-Edit.html Thanks Trinath
please send me the answer - JDBC
please send me the answer -difference between DriverManager and DataDourse   what is Datasourse? What r the advantages? what is the difference between DriverManager and DataDourse
please help me.
please help me.  Please send me a code of template in opencms and its procedure.so i can implement the code. Thanks trinath
error please send me the solution
error please send me the solution  HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception
error please send me the solution
error please send me the solution  HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception
Zip Code Validation - Java Interview Questions
Zip Code Validation  Hi, Anyone can please send me a javascript function of the following --> Indian postal Zip Code Validation (Only 6 digits... code of 6 digits using Javascript. function validateZIP
sir, how to convert excel file to csv file using java? please send me sample code.
sir, how to convert excel file to csv file using java? please send me sample code.  please send me sample code for converting excel file into csv file uisng java
combox validation javascript code - JSP-Servlet
combox validation javascript code  hiiiiiii, I want a javascript code for combobox field validation for my Lotus Notes web page.... thnx  Hi This is the source code of combobox validation in javascript
this is my javascript code and i am not understanding the mistake in this,please help me?
this is my javascript code and i am not understanding the mistake in this,please help me?  <html> <h2>Form Validation</h2> <script language = "Javascript"> function checkEmail
i want to create website,with manu with three level submenu on top side of page please send me code java
i want to create website,with manu with three level submenu on top side of page please send me code java   iam createing wibsite thats using eclipse andtomcat server,please help me to write menu with three level submenu
Please provide jquery inline form validation for the code
Please provide jquery inline form validation for the code   <...="text/javascript" src="Datetimepicker.js"></script> <body bgcolor..." size="25" name="dob" style=" height : 25px;"><a href="javascript:NewCssCal
Please help me
Please help me  Hi Sir, please send me the code for the following progrems... 1) all sets are integer type: input: set1={10,20,30,40} set2={15,25,35} output: union={10,15,20,25,30,35,40} 2) input: "Hi what
please send me the banking data base in swings
please send me the banking data base in swings  sir, please send me how to create the banking data base program in swings
please tell me
please tell me  what is the source code if user give wrong user name...;script type="text/javascript"> function showData(){ var user...); } %> For more information, please go through the following link: http
please send code - Java Beginners
please send code  hai friends plese provide code for fallowing... number it should be taken as single number) URGENTLY send the code for this  Hi friend, Code to solve the problem : class StringExampleJava
Registration page with JavaScript Validation
Registration page with JavaScript Validation   HTML Registration page with JavaScript Validation - required source code   Registration page in HTML with JavaScript Validation source code <html> <head>
Form Validation with JavaScript
Form Validation with JavaScript  I created a simple form including nine or ten fields in HTML, and i want to validate it in JavaScript. How can i do it? Thanks!!   Hi Friend, Try the following code: 1)register.html
JavaScript Email Validation
JavaScript Email Validation...; In this section we are going to check email Validation using JavaScript. JavaScript allows to perform a client side validation of email Ids in several forms
validation - Java Beginners
javascript Required fields are-: 1.email 2.login 3.password 4.Firstname 5.lastname 6.date of birth. plz send me the code above mention required fields... JavaScript validation file 'validation.js': function emailcheck(str
Help me please!!! - Java Beginners
Help me please!!!  im badly needing the complete code for this project in java!!! can you please help me???!!! it is about 1-dimensional array... the answers 8Hours from now!!! Kindly help me!! please!!please!!! NOTE
Time validation
box is in the correct format or not using java script. Please help me for doing project.   Here is a code that accepts the time in the format hh:mm...;html> <script language="JavaScript"> function check(timeStr) { var
please check my code is wrong or ok.it was not work .this is form validation in javascript using jsf page
Form validation in javascript using jsf page  ?xml version='1.0...; <title>view</title> <script type="text/javascript...;   Please visit the following link: JSF
please check my code is wrong or ok.it was not work .this is form validation in javascript using jsf page
please check my code is wrong or ok.it was not work .this is form validation in javascript using jsf page  <p>?xml version='1.0' encoding...;title>view</title> <script type="text/javascript" >
Please Send - Java Beginners
Please Send  Hi, this is perfect ur sending code I want java script coding Steps:-If user click on refresh button then page iage will be refresh Thanks  Hi friend, Thanks vineet
Please help me to write a code for add contacts to groups in a website?
Please help me to write a code for add contacts to groups in a website?   Iam developing a site. In that site I need to write code for Groups... send a code for this? Please make it fast
Validation
Validation  1)where sohould we place struts.xml 2)where should we place validation.xml fies 3)Which is the main controller that acts as a servlet:please brief me about the different controller in S2
Javascript code
can see Student Regd->Student Detail->Confirmation.. Please help me...Javascript code  Dear Sir, Thank you a lot for your support throughout the process. Here again i am in a doubt.Can you please clarify? I have
Javascript code
. Please help me Regards Debasis...Javascript code  Thank you a lot for your support throughout the process. Here again i am in a doubt.Can you please clarify? I have a page called
Javascript
Javascript   Javascript to check Numeric entry in checkbox.....   Hi Please find the following code for numeric entry validation in javascript function validateBox(){ var data=document.myForm.someText.value
Validation
Validation  I am developing a standalone application which requires me to save the email id and contact number (mobile number) in a database (MySQL... it in the database? PLEASE HELP!!!!!   import java.awt.*; import java.sql.*; import
Please help me... its very urgent
Please help me... its very urgent  Please send me a java code to check whether INNODB is installed in mysql... If it is there, then we need to calculate the number of disks used by mysql
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
Help needed for Form Validation please help!
Help needed for Form Validation please help!  I have created a page... clicking the submit button for sign up it also goes through the jsp code and returns incorrect Username/password combination. So how can I make the jsp code confined
Javascript code
Javascript code  Dear Sir, Please help me..It s urgently required.Please help me.I have three types of electrical meters data with their testing dates saved in database with their id.Meters specifications are 11kv,33kv and >
Javascript code
Javascript code  Dear Sir, Please help me..It s urgently required.Please help me.I have three types of electrical meters data with their testing dates saved in database with their id.Meters specifications are 11kv,33kv and >
urgent...pleAse help me.....please!
urgent...pleAse help me.....please!  please help me urgent! how can i do dictionary with the use of array code in java, where i will type the word then the corresponding meaning for that word will appear...thanks