Forum Moderators: open

Message Too Old, No Replies

onChange and Nothing Chosen

         

scoobydoo987

9:52 pm on Oct 17, 2005 (gmt 0)

10+ Year Member



Is there a way to tell if the user hasn't clicked the dropdown box of choices? I know that you can call a function and do things with onChange but I need
+ ' ' + comSignature
to also be added to ['linerTextAndDescriptionAdj_" + vid + "'].value even if the user doesn't choose anything?

Does anyone know how I would do this?
--------------------------------

0NewTd13.innerHTML = "<select class=copy style='background-color: #FFFFFF' onchange=\"document.forms[0].elements['linerTextAndDescriptionAdj_" + vid + "'].value = linerText + ' ' + this.options[this.selectedIndex].innerHTML + ' ' + comSignature; document.forms[0].elements['DescriptionAdj_" + vid + "'].value = this.options[this.selectedIndex].innerHTML;\" name=descript_" + vid + "><option value=''>-- choose description --</option>" + descriptionAdjOptions + "</select>";

muneepenee

12:07 pm on Oct 18, 2005 (gmt 0)



1. if yu yuze "onChange", yu wont jump tu funkshun til
yuzer klik on sumthang not now selected.
2. yu kan hav the kode select the nominal message tu tri tu prompt yuzer tu select a reel value. But yu kant foers him tu duit.
3. yu kan put drop-box in a form with a submit button tu foers him tu klik sumthang. Then in funkshun the form gotu get the selected index
num1=document.inputf.dropbox1.selectedIndex;
if num1 < 1, him never selected NE-thang