when I select Mark form the drop down I'd love JavaScript or so fill out a div with his email (if I optionally want to click there to email him...)
imagine hundreds of names in this drop down ..
I imagined some easy - straight forward way to add a command and email to each OPTION and avoid any function with much logic
but it doesn't seem to work that way .. I guess I need to write some javascript function that will find what option was just selected
and maybe take a VALUE of some of it's parameter and fill a DIV's value with it..
<select class="selectbox" name="to" onChange="alert('WORKS');">
<option value="+18598749587454" onChange="div.value='(THIS FAILS TO WORK BUT WOULD LOVE FOR IT TO) mark@domain.tld';">Mark </option>
<option value="+18598749533333" onChange="div.value='Christohper@domain.tld';">Christohper </option>
<option value=""></option>
<option value=""></option>
<option value=""></option>
<option value=""></option>
</select>
hmmm I see maybe
onkeyup="script(event,this)"
could help me ..
what's the easiest / best way to do it .. so that it would be easy to add new contacts .. phone + email + other value ..
thank you ...