/    Sign up×
Community /Pin to ProfileBookmark

Problem with JS Form (newbie alert!)

Greetings folks. I am not only new to JS, but also to this forum. I am attempting to create a form which enables a user to copy their text anywhere from 1 to 10 times. My script isn’t working and am looking for a little guidance. Perhaps somebody could shed a little light on the prob? Remember, I’m a newbie to JS here. 😮

The URL is:

[url]http://www.bakersfieldwebdesigns.com/javacss/a43.html[/url]

Thanks!

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@FangNov 18.2009 — <form id="form1" name="form1" method="post" action="#" onsubmit="addtext(); return false;">
Also the [I]name[/I] values in the JavaScript do not match with those in the html.
Copy linkTweet thisAlerts:
@MotleyauthorNov 18.2009 — Fang.. thanks for the reply. However I am still having probs with it. It robably has to do with some name value I am missing or something. Would anyone mind taking a look at this again (new url + page) and seeing if ya can figure out what the heck this newbie is doing wrong?

http://www.bakersfieldwebdesigns.com/javacss/a44.html

Thanks!
Copy linkTweet thisAlerts:
@FangNov 19.2009 — [I]newText[/I] has not been defined
×

Success!

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