Use:
$("#id option").each(function()
{
// Add $(this).val() to your list
});
More Related Contents:
- How to get the children of the $(this) selector?
- Get selected text from a drop-down list (select box) using jQuery
- Assign click handlers in for loop
- How can I select an element by name with jQuery?
- How do I get jQuery to select elements with a . (period) in their ID?
- jQuery selectors on custom data attributes using HTML5
- How can I get selector from jQuery object
- Select all elements that have a specific CSS, using jQuery
- jQuery function to get all unique elements from an array?
- jQuery DOM changes not appearing in view source
- Testing if a checkbox is checked with jQuery
- JQuery .on() method with multiple event handlers to one selector
- jQuery : select all element with custom attribute [duplicate]
- Selecting multiple classes with jQuery
- Case insensitive jQuery attribute selector
- How do you check if a selector matches something in jQuery? [duplicate]
- Not class selector in jQuery
- jQuery single selector vs .find()
- jQuery Selector + SVG Incompatible?
- Using jQuery to search a string of HTML
- jQuery find and replace string
- Store jquery selector in variable
- Is there a ‘has focus’ in JavaScript (or jQuery)?
- jQuery support “:invalid” selector
- Getting the “match” object in a Custom Filter Selector in jQuery 1.8
- Combine two selectors with one jQuery object
- How to select empty inputs (value=””) using jQuery
- jQuery difference between :eq() and :nth-child()
- jQuery selector to target any class name (of multiple present) starting with a prefix?
- Why do functional pseudos such as :not() and :has() allow quoted arguments?