I have a element in HTML. This element represents a drop down list. I\'m trying to understand how to iterate through the options in the <
<
This worked for me
$(function() { $("#select option").each(function(i){ alert($(this).text() + " : " + $(this).val()); }); });