Question: how to get dropdown all option value in jquery?
Answer: $(document). ready(function() {
var values = $("#pets option"). map(function() {
return this. value;
}). get(). join(",");
$("#container"). html(values);