/    Sign up×
Community /Pin to ProfileBookmark

Form Validation

Hi Everybody,

This is a snippet from a form validation script.

[I]if (document.contForm.fName.value == “”)
{
errorMsg += “ntFirst Name t- Enter your First Name”;
}
[/I]

What do the “switches?” mean? or better yet, how am I supposed to use them, so I will know?

“n” ??

“tFirst Name”
[I]( “First Name” looks like JUST the text description that would be found on the mail form page… like [B]First Name: [Input Name=”who”][/B]. Is that all it refers to?)[/I]

“t-“

I ought to ask this too. Is there a searchable place where I could have found out what these tags are? Where would that be?

Thanks, Folks

-Paul-

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@bathurst_guyJul 11.2005 — n means new line

t means tab
Copy linkTweet thisAlerts:
@jPaulBauthorJul 11.2005 — Thanks bathurst-guy

I did look to Google.... guess I didn't pose the inquiry well enough because I got millions of hits.. .from "Gary n this" etc.

So, thanks for the help with the /n kind of thing.

Btw is that Bathurst New Brunswick??

Regards

-Paul-
Copy linkTweet thisAlerts:
@bathurst_guyJul 11.2005 — No its Bathurst New South Wales Australia, home of Mt. Panorama
×

Success!

Help @jPaulB spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.15,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...