Er, I know the subject might not make any sense... but here is a better explanation. Now I program in PHP/Perl/MySql, but almost never use JS... I tried for a couple of hours to do this, to no avail.. so here is the problem.
What I would like, is a select box, for instance lets say there are a few states in there... So, You have Texas, Alabama, Oklahoma, Iowa, So these are the options in the select menu, now lets say someone selects Texas, What I would like it to do... is Put information about texas in a Textarea and then if they selected alabama afterwards, the texas information would be gone, and the alabama information would be there.
Now I've tried a few things, like onFocus="document.myform.display.value='This is stuff about texas...';"
And I've also tried onSelect, and also tried putting the onFocus into a function then calling the function from within the form... but still nothing... Will someone actually shine some light on this utter darkness I am experiencing? (please show some code) thank you for your help.
What I would like, is a select box, for instance lets say there are a few states in there... So, You have Texas, Alabama, Oklahoma, Iowa, So these are the options in the select menu, now lets say someone selects Texas, What I would like it to do... is Put information about texas in a Textarea and then if they selected alabama afterwards, the texas information would be gone, and the alabama information would be there.
Now I've tried a few things, like onFocus="document.myform.display.value='This is stuff about texas...';"
And I've also tried onSelect, and also tried putting the onFocus into a function then calling the function from within the form... but still nothing... Will someone actually shine some light on this utter darkness I am experiencing? (please show some code) thank you for your help.