Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more

Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Web Design Forum > HTML / CSS
User Name
Password

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 05-07-2008, 05:42 AM   #1 (permalink)
CoolEJ
Junior Member
 
Join Date: May 2008
Posts: 1
Default Field Validation using Javascript

Hi I need help. I can't get this to work. Any help will be highly appreciated.
I have this HTML and JS on the body of the web page:
--------------------------------------
<form method="post" action="main.ASP?WCI=Main&WCE=SubmitNonconformance &WCU=s%3dO2CFJ98YN9LV7R6UYC972AFMROX0AW40" name="Issue1">

<INPUT NAME="StandardText026" type="TEXT" size="20" MAXLENGTH="50"></td><td bgcolor="#FFFFFF"><font face="Verdana" size="-2" color="#000000"><b>Part No. Rev.</b>

<SCRIPT FOR = "SUBMIT" EVENT = "onclick">

IF ((document.Issue1.StandardText026.Value.length==0) ||(document.Issue1.StandardText026.Value==NULL))
{
ALERT ("Please fill-up the Part No. Field.");
document.Issue1.StandardText026.focus();
RETURN false;
}

</SCRIPT>

PLease help. What is wrong with my JS? I expect the alert box to come up when the field is empty.
Thanks!
CoolEJ is offline   Reply With Quote
Sponsored Links
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Points Per Thread View: 1.00
Points Per Thread: 11.00
Points Per Reply: 5.00



» Sponsors

» Links

» Affiliates
Web Hosting
Marketing Find
Merchant Select
SiteMap Builder
Host Compare
Dedicated Servers

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 09:33 PM.



LinkBacks Enabled by vBSEO 3.0.0 RC8
Webmaster Forums