How i add the value in combobox by using java script

hi,i have to some values in combobox by using java script in my web project, intially my combobox is blank…

for that what i have to set in property of combobox and what is code of java script…

if any one help me please …

its urgent

thanks

Rupesh

Subject: How i add the value in combobox by using java script

Try this might help:

function writeInCombo(data, fldCombo) {

	fldCombo.length=0

	var dl = data.length	

	for(iCount=0;iCount<dl;iCount++) {

		fldCombo.length +=1

		strText=data[iCount]

			if (strText !=undefined && strText != null) { 

					fldCombo[fldCombo.length-1].text = strText

					//window.status = "Writing combo " + iCount.toString();

					fldCombo.selectedIndex = iCount+1	

					}

			}

		} 

HTH

Sai