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



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

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


ashutosh
please send me javascript validation code
3 Answer(s)      6 years ago
Posted in : Java Beginners



Advertisement
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 Tutorials/Questions & Answers:
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
Advertisements
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
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
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
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
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
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
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 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 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
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 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
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
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
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 to write a code for this program
please help me to write a code for this program   1 1 1 1 2 2 1 1 3 4 3 1 1 4 7 7 4 1
please help me to write a code for this program
please help me to write a code for this program   1 1 1 1 2 1 1 3 3 1 1 4 6 4 1
Please tell me the code to generate the below structure
Please tell me the code to generate the below structure  1 2 3 4 5 6 7 8 9 1 2 3 4 6 7 8 9 1 2 3 7 8 9 1 2 8 9 1 9 1 2 8 9 1 2 3 7 8 9 1 2 3 4 6 7 8 9 1 2 3
please help me to give code - Java Beginners
please help me to give code  Write a function with a signature cheerlead(word) that prints a typical cheer as follows. The word robot: Gimme an R Gimme an O Gimme a B Gimme an O Gimme a T What did you give me? ROBOT
Please help me fix this code - MobileApplications
Please help me fix this code   Please help me in this area of code... in the background of the forms in this code i want to sum all expenses amount... expenses)", "Please fill all required field \n \n * This signify required field
please help me to give code - Java Beginners
please help me to give code  Write a function, sliding(word, num)that behaves as follows. It should print out each slice of the original word having length num, aligned vertically as shown below. A call to sliding(examples, 4
please convert for me this code to GUI - Swing AWT
please convert for me this code to GUI    THE CODES ARE BELOW...; } else screen.displayMessageLine( "\nInvalid account Nummber or PIN, Please...; screen.displayMessageLine("\n Your cash has been"+ "dispensed. please take your cash
please help me to give code - Java Beginners
please help me to give code  Write a program that uses loops to generate an n x n times table. The program should get n from the user. As a model here is a 4 x4 version: | 1 2 3 4
please help me to give code - Java Beginners
please help me to give code  Write a program that prints an n-level stair case made of text. The user should choose the text character and the number of stairs in the stair case * ** *** ****   Hi friend
I didn't gat an output for this code, plz send me a correct code
I didn't gat an output for this code, plz send me a correct code  Hi, Here is my code: import java.awt.event.*; import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; import javax.swing.*; import java.sql.*; public
please convert for me this code to GUI - Swing AWT
please convert for me this code to GUI  THE CODES ARE BELOW, CLASS ATMCaseStudy is the driver class that runs all the other classes. its very urgent... account Nummber or PIN, Please try again."); } private void
please help me to give code - Java Beginners
please help me to give code  Write a program that reads a file named famous.txt and prints out the line with the longest length. In the case of a tie, you may print out only one of them. For example in the file: Alan Turing
 

 

 

DMCA.com