please send me java script for html validation

please send me java script for html validation

View Answers

January 13, 2009 at 11:38 PM

Hi friend,

complete code after javascript validation :


<html>
<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>
function validate()
{
if(document.frm.first_name.value=="")
{
alert("Please enter first name.");
return false;
}
if(document.frm.last_name.value=="")
{
alert("Please enter last name.");
return false;
}
if(document.frm.address.value=="")
{
alert("Please enter address.");
return false;
}
if(document.frm.city.value=="")
{
alert("Please enter city.");
return false;
}

if(document.frm.zipcode.value=="")
{
alert("Please enter zipcode.");
return false;
}
if(document.frm.country.value=="")
{
alert("Please enter country.");
return false;
}
if(document.frm.phone.value=="")
{
alert("Please enter phone.");
return false;
}
if(document.frm.cardtype.value=="-1")
{
alert("Please select card type.");
return false;
}

if(document.frm.card_number.value=="")
{
alert("Please enter card number.");
return false;
}
if(document.frm.date_expiry.value=="")
{
alert("Please enter date of expiry.");
return false;
}
return true;
}
</script>
</head>
<body>

<form name="frm" onsubmit="return validate();">
<table align=center>
<tr>
<td><font class=first size=10 color=black><i><b>Real Estate Company</b></i></font></tr>
</table>


<table 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 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>

January 13, 2009 at 11:39 PM


<marquee><font color="white" size=6><b>Data about shares/other realestate information...</b></font></marquee>

<hr></hr>
<br>
<br>
<td><u>Billing Information:</u></td><br><br>

<td>First Name*&nbsp;<input type="text" name="first_name"></td><br>
<td>Last Name*&nbsp;&nbsp;<input type="text" name="last_name"></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;&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>

<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="zipcode"></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="card_number"></td><br><br>
<td>Date of Expiry<input type="text" name="date_expiry"></td><br><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<td><input type="submit" value="Continue"></td>
<td><input type="submit" value="Reset"></td>
</form>

</body>
</html>

January 13, 2009 at 11:40 PM

For read more information visit to:

http://www.roseindia.net

Thanks


January 14, 2009 at 6:16 AM

Hi friend,


I am sending code according to your requirement.


<html>
<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:yellow;}




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

<script type="text/javascript">

function validateForm(theForm){

if(theForm.request.selectedIndex == 0 ) {
alert("Please select property!");
return false;
}

var radio_choice = false;
for (counter = 0; counter < radio_form.radio_button.length; counter++){
if (radio_form.radio_button[counter].checked)
radio_choice = true;
}

if (!radio_choice){
alert("Please select Category!")
return (false);
}

if(theForm.state.selectedIndex == 0 ) {
alert("Please select state!");
return false;
}

if(theForm.city.selectedIndex == 0 ) {
alert("Please select city!");
return false;
}

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

January 14, 2009 at 6:17 AM

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


<table 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 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=5>ContactUs</font></b></a>
</table>

<hr></hr>

<marquee><font color="white" size=4><b>Data about shares/other realestate information...</b></font></marquee>

<hr></hr>
<center>
<form method="POST" action="" onsubmit="return validateForm(this);" name="radio_form">
<table border="0">
<tr><td>
<select name="request" >
<option value="0">AllProperties</option>
<option value="1">Rent</option>
<option value="2">Sale</option></select></td></tr>
<tr><td>
Category:
<input type="radio" name="radio_button" value="residence">Residence
<input type="radio" name="radio_button" value="commercial">Commercial
<input type="radio" name="radio_button" value="both">Both</td></tr>

<tr><td>PropertyType</td></tr>
<tr><td><input type="checkbox" name="property">Apartments</td>
<td><input type="checkbox">Resort</td>
<td><input type="checkbox">OfficeSpace</td>
<td><input type="checkbox">BeachHouses</td>
</tr>

<tr>
<td><input type="checkbox">Restaurents</td>
<td><input type="checkbox">Ulla</td>
<td><input type="checkbox">Castle</td>
<td><input type="checkbox">Duplex</td>
</tr>

<tr>
<tr><td><input type="checkbox">PreConstruction</td>
<td><input type="checkbox">Vineyard</td>
<td><input type="checkbox">CommercialComplex</td>
<td><input type="checkbox">Iglou</td></tr>

<tr>
<td><input type="checkbox">SingleFamilyHome</td>
<td><input type="checkbox">WareHouse</td>
<td><input type="checkbox">Business</td>
<td><input type="checkbox">Others</td></tr>

<tr>
<td><br/><b>Property Location<b></td>

</tr>

January 14, 2009 at 6:18 AM

<tr><td><select name="state">
<option value="0">select state</option>
<option value="1">Andaman and Nicobar Islands</option>
<option value="2">Andhra Pradesh </option>
<option value="3">Arunachal Pradesh </option>
<option value="4">Assam</option>
<option value="5">Bihar </option>
<option value="6">Chandigarh </option>
<option value="7">Chhattisgarh </option>
<option value="8">Dadra and Nagar </option>
<option value="9">Daman and Diu </option>
<option value="10">Delhi </option>
<option value="11">Goa </option>
<option value="12">Gujarat </option>
<option value="13">Haryana </option>
<option value="14">Himachal</option>
<option value="15">Jammu and Kashmir </option>
<option value="16">Jharkhand </option>
<option value="17">Karnataka </option>
<option value="18">Kerala </option>
<option value="19">Lakshadweep</option>
<option value="20">Madhya Pradesh </option>
<option value="21">Maharashtra </option>
<option value="22">Manipur </option>
<option value="23">Meghalaya </option>
<option value="24">Mizoram </option>
<option value="25">Nagaland </option>
<option value="26">Orissa</option>
<option value="27">Puducherry </option>
<option value="28">Punjab </option>
<option value="29">Rajasthan </option>
<option value="30">Sikkim </option>
<option value="31">Tamil Nadu </option>
<option value="32">Tripura </option>
<option value="33">Uttarakhand </option>
<option value="34">Uttar Pradesh </option>
<option value="35">West Bengal</option>
</option>
</select>

<td><select name="city">
<option value="0">select city</option>
<option value="1">Alappuzha</option>
<option value="2">Baleshwar</option>
<option value="3">Bardhhaman</option>
<option value="4">Bharuch </option>
<option value="5">Berhampur </option>
<option value="6">Kozhikode </option>
<option value="7">Kannur </option>
<option value="8">Chengalpattu </option>
<option value="9">Kochi</option>
<option value="10">Chennai</option>
<option value="11">Guwahati </option>
<option value="12">Jalandhar </option>
<option value="13">Palakkad</option>
<option value="14">Pune </option>
<option value="15">Kollam </option>
<option value="16">Sewagram </option>
<option value="17">Sridham </option>
<option value="18">Srirampur</option>
<option value="19">Tarangambadi </option>
<option value="20">Thalasseri </option>
<option value="21">Thiruchchirapalli </option>
<option value="22">Trissur </option>
<option value="23">Thiruvananthapuram</option>
<option value="24">Udhagamandalam </option>
<option value="25">Vadodara </option>
<option value="26">Varanasi </option>
<option value="27">Vasai </option>
<option value="28">Vijayawada </option>
</select>
</td></tr>
</table>
<table>
<tr><td><input type="submit" value="SEARCH" name="submit"></td>
<td><input type="reset" value="RESET">
</td></tr>
</table>
</form>
</body>
</html>
-----------------------------------
Visit for more information:
http://www.roseindia.net/javascript/
Thanks.
Amardeep









Related Tutorials/Questions & Answers:
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
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
Advertisements
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
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
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
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
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
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
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
stuts java script validation is not working.
stuts java script validation is not working.  hello my stuts client side validation is not working. pls help me out i have put jsp file's code and validation.xml file's code. pls help --of jsp page-- > <html:form action
stuts java script validation is not working.
stuts java script validation is not working.  hello my stuts client side validation is not working. pls help me out i have put jsp file's code...-- Enter name: Enter pass: <html:submit/>
stuts java script validation is not working.
stuts java script validation is not working.  --of jsp page-- Enter name: Enter pass: <html:submit...; </form> </formset>   Please go through the following link
stuts java script validation is not working.
stuts java script validation is not working.  --of jsp page-- Enter name: Enter pass: <html:submit...; </form> </formset>   Please go through the following link
please send code - Java Beginners
please send code  hai friends plese provide code for fallowing program(CORE JAVA) i am taking string from commandprompt like 'AC2E4T45hj789' now... number it should be taken as single number) URGENTLY send the code
validation in java script
validation in java script  i have put this code for only entering integer value in text box however error occured...(){ if(document.form.num.value == ""){ alert("Please enter number
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
java script validation - Java Beginners
java script validation  how to do validations in j s p thru java..." with javascript validation : Contact Details .txt { font-size:12px; font...=document.screenForm.phone.value; if(document.screenForm.name.value=="") { alert("Please
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
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
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.... This link will help you. Please visit for more information. http
java script validation - Java Beginners
java script validation  hi, i have two radio buttons yea and no. all text fiels r deactivated, when i click no radio button. its get active... Button Validation function callEvent1
send HTML Email with jsp and servlet
send HTML Email with jsp and servlet  Can You please show me how to send html Email using JSP and Servlet thank you
send me example of jmsmq - JMS
send me example of jmsmq  please send me example about jmsmq (java microsoft message queuing ) library
please help me - Java Beginners
please help me   I have some error in this programe //write acomputer programe using java to generate following series : //output: //1,2,3,0,-2,7,-4..... class Series1HW { public static void main(String args
Send me Binary Search - Java Beginners
Send me Binary Search  how to use Binary think in java give me...(System.in)); System.out.println("Please enter number!"); int SIZE...)); } } ----------------------------------------- Read for more information. http://www.roseindia.net/java/ Thanks
please help me.
please help me.  How to read a properties file in java with a suitable example. Please send me. Thanks Trinath   Please visit the following link: Java read properties file
Html / Java Script - Development process
Html / Java Script  Hi There, in my form there are ten text boxes. my requirement is that when i click checkbox,the values of first five textbox has to copy to next five. I need jscript for that  Hi Friend, Try
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
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
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
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..., http://www.roseindia.net/java
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 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...(); } } } ------------------------------- read for more information, http://www.roseindia.net/java/beginners/read
Please check it and let me know - Java Beginners
Please check it and let me know  Hi friends, your las suggession... code and requirement please check it and solve again thanks Requirements:- I...++ Core Java J2EE .NET
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 for this program - Java Beginners
please help me for this program   Write a program that asks the user for a starting value and an ending value and then writes all the integers (inclusive) between those two values. Enter Start: 10 Enter End: 14 10
please help me in a java program !! - Java Beginners
please help me in a java program !!  the porgram should use kosaraju's algorithm to detect the strong connected components in a graph (http://en.wikipedia.org/wiki/Kosaraju_algorithm) there are 4 classes in my program : Vertex
please help me here.. - Java Beginners
please help me here..  ..uhhmm.. im a little bit new to java and i go confused on my case study.. import java.lang.*; import java.io.*; public...."); } } } ---------------------------------------------------- Read for more information, http://www.roseindia.net/java
please give me a java program for the following question
please give me a java program for the following question  Write a java program that displays multiple frames : Step 1: Design a frame with three buttons: ?Fruit?, ?Bird? and ?Animal? Step 2: On clicking ?Fruit? button
Java Script
. Try to send me java script validation code for this purpose that user won't...Java Script  Hello Sir, Is it possible to select only current date from datetimepicker in struts2 through java script validation. Means when i select
please tell me what is ment by wrapper class in java........
please tell me what is ment by wrapper class in java........  what is ment by wrapper class in java
please answer me
please answer me  iam using html in select tag.in this one option i selected and that option data will be display in table.And use servlet with html and how to retrieve the data from data base
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 tell me
please tell me  i have created one table,when i close and again login, table name will be there, but its content not displayed, showing as no rows selected, please tell me the reason
Please help me to learn - WebSevices
Please help me to learn  Please help me to learn Java Fast
i want java code for this xml file...please show me..
i want java code for this xml file...please show me..   xbrli:shares xbrli:pure iso4217:INR
please help me.
please help me.  How to move the edits.jsp in below link? http://www.roseindia.net/answers/viewqa/JSP-Servlet/9584-JSP-Servlet-Search-and-Edit.html
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
help me please
help me please   Hello I want helping for this question , Please Write a program that reads some friendsââ?¬â?¢ names, stores them in an array, and then prints out on the screen all friends who start by a particular letter

Ads