I'm a vb.net user mostly... can anyone tell me why I'm getting a runtime error 'permission denied' when running this? trying to get values from a dropdownlist.
Code:
function getvalues()
{
var dl = document.getElementById("DropDownList11");
var item1;
item1 = dl.options[0].value;
document.write(item1 + "<br>");
item1 = dl.options[1].value; //error occurrs here
document.write(item1 + "<br>");
}
Comment