Dynamic Fill Combobox values through javascript
Examople:
Call the fuction at the button click event
function DynamicComboAdd()
{
var Obj=document.getElementById('DropDownList1');
Obj.options.length=2;
Obj.options[0].text='hi';
Obj.options[0].value='hi';
Obj.options[1].text='hii';
Obj.options[1].value='hii';
return false;
}
No comments:
Post a Comment