$("#optionselect").change(function(){ You may also have a look at the following articles to learn more –. Hold down the control key on Windows or command key on Mac to select multiple options. The second one is the text value of the select element. alert(values.text()); The unique ID of our select element and the value that we want to select. The “option: selected” attribute is used to select specific content in the option tag. var values=$("#optionselect option:selected"); If you want to study these concepts in depth, take a look at MDN. Hi, I have a select menu similar to this one (populated dynamically): SELECT . alert(values.text()); You can select on any attribute and its value by using the attribute selector [attributename=optionalvalue], so in your case you can select the option and set the selected attribute. , Making statements based on opinion; back them up with references or personal experience. Each of these is rendered as an option in the dropdown menu. When the option is selected then selected content is displayed in another text box. To subscribe to this RSS feed, copy and paste this URL into your RSS reader. . Who enforces the insurrection rules in the 14th Amendment, section 3? The selector id selects the particular option and displays it on the alert window. Looking at the specs http://www.w3.org/TR/html401/interact/forms.html#h-17.6 I would say it's a bug in Chrome. It is special attributes used mostly in the dropdown list. Clicking the “Add option” button adds a new option to the end of the select and makes it the selected one. }); Join Stack Overflow to learn, share knowledge, and build your career. });