/    Sign up×
Community /Pin to ProfileBookmark

Form field onchange help.

I need help. I hope this is a simple task.

I need to have a text field and a drop-down field. But I need the drop down to add to the text field when a selection is made.

For example if I type in the text field “myemailaddress” and in the drop down I select from a list of email provider “@yahoo.com”. I need it to complete in the text field “[email protected]

OR

What would also work would be to fields and have them combined in a third field.

Are either of these possible with onchange? onclick would not work for what I’m doing, and server side scripting is not an option.

Thanks in advanced for any help.

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@WebJoelMay 12.2008 — The user would type their username-[I]only[/I] and the drop-down would provide a list of domain choices (e.g., @yahoo.com, @aol.com, @hotmail.com, .... etc) and clicking the correct one, appends the [I]user-name[/I] with the correct [I]domain[/I] and provide the unified output, is what you are asking. Interesting... hmm..
Copy linkTweet thisAlerts:
@zigmoauthorMay 12.2008 — Yes that is what I'm looking to do. I used email address as an example.
×

Success!

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