There's a select option to choose from(1). Upon clicking any of the options will trigger a JS function(2) to display the corresponding value on another input box(3) <br>------------------------------------------------------------<br>(1)<br><tr><br><td>Payment Type</td><br><td><br><select name="paymenttype" size="1"><br> <option value="ALL" onClick="show_company(paymenttype);" selected>----All----</option><br> <option value="LL" onClick="show_company(paymenttype);">Licensee</option><br> <option value="RL" onClick="show_company(paymenttype);">Retailer</option><br></select></td><br></tr><br><br>(2)<br><script language="Javascript"><br><br>function show_company(PT)<br>{<br> switch(PT)<br> {<br> case "All": step A; break;<br> case "RL": step B; break;<br> case "LL": step C; break;<br> }<br><br> return company_name<br>}<br></script><br><br>(3)<br><tr><br><td>Company Name</td><br><td><input type="text" name="company" value="<cfoutput>#company_name#</cfoutput>"></td><br></tr><br>------------------------------------------------------------<br>Q:<br>Can the JS function: show_company(paymenttype); query the required values and output on a textbox or similar?<br>(The above functions are not complete bcoz I'm stuck..)<br>Pls help, thank you!<br>