Monday, January 08, 2007

How to make the available options of select box as selected while submitting a form using javascript?

for(var i = 0;i < document.formname.selectboxname.length;i++) {
document.formname.selectboxname.options[i].selected = true;
}

No comments: