.Net Treasure
Monday, February 28, 2011
Add item in DropDownlist in JavaScript
function
AddItems(ddlName, textField, ValueField) {
var
opt = document.createElement(
"option"
);
opt.text = textField;
opt.value = ValueField;
ddlName.options.add(opt);
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment