/    Sign up×
Community /Pin to ProfileBookmark

JavaScript Help badly needed

Am trying to get this form working, so when the “validate” button is click it checks whats in the other boxes & displays a warning if needed.

So far i can get it to validate/check the first name box, but it gets stuck on the lastname box! GRRRRR it wont then go past this.

If any of you are any good at javascript, please pretty please can you have a look and see if you can spot anything wrong.

Cheers 😮

[upl-file uuid=2c8287c7-4cd6-4d13-8c42-65b4fc9cbad6 size=8kB]assignment1.txt[/upl-file]

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@ChikoritaProJan 06.2003 — First Name: <INPUT TYPE="text" NAME="firstName" SIZE="10">

Last Name: <INPUT TYPE="text" NAME=lastName" SIZE="20">

Student Number:<INPUT TYPE="text" NAME="stuNumber" SIZE="6"><p></P>

Look closely at the NAME=lastName" part of the coding. See anything missing? You're missing a Quotation Mark (") before lastName. Enjoy ?!
Copy linkTweet thisAlerts:
@TerraauthorJan 06.2003 — God I love you!!!!

Now the first 3 boxes work!!!!! Am getting there!!!!

Only 5 or so to go :o)

I think i have sat there staring at that stuff for too long!
Copy linkTweet thisAlerts:
@khalidali63Jan 06.2003 — you do not have validateHouseName() method defined,its only called.

Khalid
Copy linkTweet thisAlerts:
@TerraauthorJan 06.2003 — LOL, is there and defined, have i put a typo in somewhere?
×

Success!

Help @Terra 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,
)...