function ValidateListBoxItems() { var selList = document.getElementById('lstRoles') ; for(var len=0; len < selList.options.length; len++ ) { if( ( selList.options[len].selected == true ) ) { return true; } } alert('Select atleast one Role.'); document.getElementById('lstRoles').focus(); return false; } |
Ad
Search This Blog
Wednesday, April 10, 2013
Asp.Net List box control validation using Javascript
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment