< HEAD><TITLE>Search Results</TITLE>
< /HEAD>
< BODY>
< form id = ff1>
<S ELECT id=select1 style="WIDTH: 128px" name=select1>
< OPTION value=1
selected>1</OPTION>
< OPTION value=2>2</OPTION>
< OPTION value=3>3</OPTION>
< /SELECT>
< /FORM>
< script type="text/javascript">
document.ff1.select1.value = "2";
< /script>
< /BODY>
< /HTML>
I using above code to change the combo box value dynamically. I need it as i am retrieving values from database and the combobox contains one of the field from db and it has to change. Please tell me how could i do that.
There must be a way to do this
< /HEAD>
< BODY>
< form id = ff1>
<S ELECT id=select1 style="WIDTH: 128px" name=select1>
< OPTION value=1
selected>1</OPTION>
< OPTION value=2>2</OPTION>
< OPTION value=3>3</OPTION>
< /SELECT>
< /FORM>
< script type="text/javascript">
document.ff1.select1.value = "2";
< /script>
< /BODY>
< /HTML>
I using above code to change the combo box value dynamically. I need it as i am retrieving values from database and the combobox contains one of the field from db and it has to change. Please tell me how could i do that.
There must be a way to do this