<span><p>Select option from dropdown and display the option value.</p></span>
<select id='ddlFruits'>
<option value='0'></option> <!-- Zero seems to prevent the alert from showing an empty message in Chrome. -->
<option value='1'>Bannana</option>
<option value='2'>Blueberry</option>
<option value='3'>Grapefruit</option>
</select>
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js'></script>
<script type='text/javascript'>
$(function () {
$('#ddlFruits').change(function () {
var selectedText = $(this).find('option:selected').text();
var selectedValue = $(this).val();
alert('Selected Text: ' + selectedText + ' Value: ' + selectedValue);
});
});
</script>
</div>
</body>
</html>
Select "Yes" from dropdown to activate another dropdown.
Select option from dropdown and display the option value. https://www.aspsnippets.com/Articles/Get-selected-Text-and-Value-of-DropDownList-in-OnChange-event-using-JavaScript-and-jQuery.aspx