JQuery - Iterate through SELECT options
Posted
by user208662
on Stack Overflow
See other posts from Stack Overflow
or by user208662
Published on 2010-06-01T13:30:35Z
Indexed on
2010/06/01
13:33 UTC
Read the original article
Hit count: 165
jQuery
Hello,
I have a SELECT element in HTML. This element represents a drop down list. I'm trying to understand how to iterate through the options in the SELECT element via JQuery.
How do I use JQuery to display the value and text of each option in a SELECT element? I just want to display them in an alert() box.
Thank you!
© Stack Overflow or respective owner