Mahesh .NET Blog
Saturday, February 23, 2008
Reading and removing Listbox using Javascript
/////////////Reading/////////////////////////////////
var listEmp=document.getElementById("PMEmpname");
for(j=0;j
{
listEmp.options[j].value //Value field
listEmp.options[j].text //Text Field
}
///////////Deleting///////////////////////////////////
for(j=0;j
{
listEmp.remove(j);
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment