View Full Version : Form functions
When User Type1 is selected alert the text "a-" in the Username field, "b-" for type 2 and "c-" for Type 3
Change the alert to a custom function that will put the values "a-" or "b-", "c-" into the Username field.
Change the focus to the Username field after a user type has been selected.
This must be a very simple assignment and since I can't begin to understand how to do it...should I just give up the whole idea of learning it?
07-21-2002, 07:00 PM
First of all NEVER EVER GIVE UP!;)
I taught myself everything i know, it took alot of hard work and alot of scratching my head. Never give up perservier on through and you'll feel alot better on the other side. :D
Heres what i came up with, but Look at it study it see what i did and learn from it, it helps to see real examples.
<select name="Type" onChange="changeUser()">
<option value="">Select A Type
<option value="a-">A Type
<option value="b-">B Type
<option value="c-">C Type
<input type="text" name="userType">
Hope this helps:D:D
P.S Remeber never give up!
Thank you so much for the help. To be honest it is still all so foreign to me but hopefully one day it'll all come together.:)
07-21-2002, 08:20 PM
Here's my view of the big picture:
Hypertext Markup Langualge is what makes stuff show up on an internet browser. The boldface in the last sentence was done by using the bolface HTML tag. To keep it simple, let's just say HTML can't do much else other that how things look on the screen.
So,we write functions and from within HTML tags we call them.
07-21-2002, 09:08 PM
You will one day figure it all out, and your very welcome, And just like RadarBob said Don't Give up :D:D:D:D:D
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.