This might be bad form, but in the onchange of the select box, you can just do:
<select name="comments1" onchange="updateText(1,this.value)"> the 'this.value' is already the value of the selected item. I've tested this fact in IE and FF. Cheers, Chris Che Vilnonis wrote: > Still no go... > > 1. took care of the select value syntax as per previous email. > 2. what do you mean by "i'd also prefer to see id attributes in the form > fields (use the same value as the 'name' attribute) and in the script". How > would I rewrite that? > 3. already know about JS being case sensitive and know that my form's name > is "form". I modified you code to read: document.form.elements["QTYShipped" > + n].value = 0; > > A view source shows... > > <select name="Comments1" > onchange="updateText(1, 'this.options[this.selectedIndex].value');"> > <option value="SHIPPED">SHIPPED</option> > <option value="SHIPPED AVAILABLE">SHIPPED AVAILABLE</option> > <option value="DISCONTINUED">DISCONTINUED</option> > <option value="OUT OF STOCK">OUT OF STOCK</option> > </select> > > <select name="Comments2" > onchange="updateText(2, 'this.options[this.selectedIndex].value');"> > <option value="SHIPPED">SHIPPED</option> > <option value="SHIPPED AVAILABLE">SHIPPED AVAILABLE</option> > <option value="DISCONTINUED">DISCONTINUED</option> > <option value="OUT OF STOCK">OUT OF STOCK</option> > </select> > > Is the value of the pulldown nor correct? > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265263 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

