I try to browse a select with jQuery and using each function but my alert in my each me back X times (where x is the number of option) the value of my first option ..
An idea?
$("#selectionChamp option").each(function(){
alert($("#selectionChamp option").val());
});
.val()(and really all of the jQuery getters) returns the requested value for the first element in the matched set. Within the context of.each(), to access the element currently being evaluated usethis: