Monday, February 18, 2008

Find a list Box is Checked (has a list count) using java script

function listBoxisChecked(s,e)
{
var Lstbox=document.getElementById('ctl00_ContentPlaceHolder2_lbxAssignedGroup');

if(Lstbox.options.length == 0)
{
e.IsValid = false;

return;
}
e.IsValid = true;

}

No comments: