JQuery - Collection Iteration
Posted
by user70192
on Stack Overflow
See other posts from Stack Overflow
or by user70192
Published on 2010-05-04T14:57:35Z
Indexed on
2010/05/04
15:08 UTC
Read the original article
Hit count: 194
jQuery
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
© Stack Overflow or respective owner