I’ve just started using dropkick by Jamie Lottering and have my select lists transformed into customizable HTML dropdowns. Great! My only issue is I can’t find a way to retrieve the selected value from the dropdown.
$('.change').dropkick({
change: function (value, label) {
alert('You picked: ' + label + ':' + value);
}
});
The site shows the above callback example, but I can’t understand how I get the value for a given id rather than have it alerted when it changes?
I want to be able to say…
$("#myselect").val()
The answer is in your question.
Suppose I have 2 select elements
I can style them using
and get values using
.