6 Answers Sorted by: 51 This will alert all the selected options' text and values (for all selects on the page): $ ('select > option:selected').each (function () { alert ($ (this).text () + ' ' + $ (this).val ()); }); See Core/each and Selectors/selected: http://docs.jquery.com/Core/each http://docs.jquery.com/Selectors/selected Share vegan) just to try it, does this inconvenience the caterers and staff? php select option selected from database in codeigniter php select option selected from database in codeigniter This way we will . You just need to some step to done . Launching the CI/CD and R Collectives and community editing features for Javascript access html select options and change background color of options, Javascript loop through ALL HTML select