var str = ""; Set Selected Option in jQuery This method is typically used to set form field values. What you do is use the selected-selector of jQuery to do it in a single line. var optionSelected = $(this).find("option:selected"); The select event is sent to an element when the user makes a text $('#_SelectID').change(function () { Many times when creating a web page and the user experience, we want to remove all options from a select list based on an interaction with another element on the web page. Can a trans man get an abortion in Texas where a woman can't? https://api.jquery.com/selected-selector/ This good works: $( "select" ).on('change',function() { This plugin allows you to create multi-select based lists quickly. Definition and Usage The select event occurs when a text is selected (marked) in a text area or a text field. How does a Baptist church handle a believer who was already baptized as an infant and confirmed as a youth? . var selectedVal = $(this).val(); how to How to incorporate characters backstories into campaigns storyline in a way thats meaningful but without making them dominate the plot? Listening for events. ); }); Now when the second option is