View Full Version : Combo Box PRoblem

12-17-2007, 07:47 AM

i facing some problem in creating a dynamic combobox, i use javascript to change the value inside the combobox. My problem is like this, when the user insert his username into the textbox, the system will update the application from the database into the conbobox. every user have diffrent application. I use 'onblur' to run the javascript coding. but i can't get the value from asp coding.

below will be the coding

<script language="JavaScript" type="text/javascript">
function change()

document.forms['loginfrm'].cboapp.options[0] = new Option('new text','new value');

i would like to add the value from database that i keep in recordset, but how?
please help