Javascript form validation

Status
Not open for further replies.

jugaaru

Right off the assembly line
HI
I have to validate a form using javascript.
name , address credit card no etc.
Any websites for this script.

Thnaks
 

prashantisonline

Super Natural
example

Hi,

firstly, make you form tag like this:

<form name="frm1" onsubmit="eval_form()">
now, name all fields like this:

<input type="text" name="credit_card">

under <script lang="jscript"> tag, put function like this:

function eval_form()
{
if not document.frm1.credit_card==""()
{
frm1.submit
}
}

You may write any code you like here.

there could be some script err.
site for j scripts is:
scriptworld.com

bye
 

Deep

Version 2.0
Javascript for

Credit Card Validation - *javascript.about.com/library/blccard.htm
Check for blank field - *javascript.internet.com/forms/required-fields.html


I hope this helps
Deep
 
Status
Not open for further replies.
Top Bottom