How to get all options of a select using jQuery?

Use:

$("#id option").each(function()
{
    // Add $(this).val() to your list
});

.each() | jQuery API Documentation

Leave a Comment