JQuery - Collection Iteration
- by user70192
Hello,
I am new to JQuery. I have a select html element. I am trying to understand how to iterate through the options in the select element. I know how to do it with traditional javascript as shown here:
for (i=0; i<mySelect.options.length; i++)
alert(mySelect.options[i].value);
However, I'm trying to learn about JQuery more. Can someone show me the best way to iterate through a collection using JQuery?
Thank you