Hi
I have an ASP.NET page with a listbox whose selection mode is set to multiple by default. I would like to set its selection mode to single on a button click.
Code snippet of my attempt:
$('#testBtn').click(function(){
$('#testListBox').attr("SelectionMode","Single");
});
It is not working though. What am I doing wrong here and how to get it to work?
cheers