KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I would like to print the selected values of all selects using jQuery. I did it like this, but I feel that there is a nicer way to write the same. Am I right ? $("select").each(function() { alert(this.options[this.selectedIndex].value); });
Tags (comma-separated)
Save Edits
Cancel