/    Sign up×
Community /Pin to ProfileBookmark

add tag to field issue!

ok – sounds easy enough but it just wont work! can’t even get any text to stay in the field???

[CODE]function addtag(){
document.form1.exhibinfo.value=”!!! “+3;
alert(“!!!”);
}[/CODE]

the !!! appears in the field when called – but only when the alert is still up. As soons as i close the alert it disappears from the field!

any ideas?

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@CharlesAug 09.2006 — any ideas?[/QUOTE]Several, but without seeing the whole page I couldn't tell you which one applies.
Copy linkTweet thisAlerts:
@gil_davisAug 09.2006 — You are probably submitting the field when you hit the "enter" key, and you probably have no "action" attribute on the form so it submits to itself which reloads the page and clears the field.
Copy linkTweet thisAlerts:
@crabbeauthorAug 09.2006 — yep - just figured that out! thanks.

d
×

Success!

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