Hello,
I am trying to extract value of a dropdown on select and use it in a
function.
Jquery has .each method to loop over matches, but I just need the
first match. I could use each and break loop after first run, but
there must be a better way..

$("#venue").change(function(){
            $("option:selected", this).each(function(){
            ....
            return false;
            });
});

Can I use something like this?
$("option:selected", this).first(function(){

});

Reply via email to