Hi All, I am trying to write a JQuery function which would select all my options in the select control with the click of a button. I am able to do it with the following function:
$("#btnAll").click(function() { $("#myselect *").attr("selected","selected"); }); But the problem is my select list box has more than 5000 values and selecting each option with this method takes much time and scrolls the whole select box. Can anyone please help me in optimizing this function so that I can instantly select without the user getting displayed about the scrolling.