Hi All,
I have been using jQuery for quite some time now. For one of my
projects, I needed to select all the options in the listbox which were
10,000+. I tried to do a comparison between using jQuery and
conventional javascript and here are my findings:
1. With jQuery:
Code: $("#myListBox *").attr("selected","selected");
Time taken: 70000+ milliseconds
2. With JavaScript:
Code: for( i=0; i < myListBox.length; i++) { myListBox
[i].selected = true; }
Time taken: 21000+ milliseconds
Can anyone provide with some better code or justify why is jQuery
taking so much time.
Also is it possible for me to raise a SHIFT+END command anyhow..?