hi,
Following function i am using for validating list box. In list box user can select only 5 item .
That is working fine. i want to how to unselect the six item selected from list box?
regards
veena
Following function i am using for validating list box. In list box user can select only 5 item .
Code:
function Validate()
{
var lblCount=0;
var lbGenre = document.getElementById('<% Response.Write(lstbox.UniqueID); %>');
for(var x = 0; x < lbGenre.options.length; x++)
{
if(lbGenre.options[x].selected)
{
lblCount+=1;
}
}
if(lblCount > 5)
{
alert("maximum five!");
return false;
}
}
That is working fine. i want to how to unselect the six item selected from list box?
regards
veena
Comment