I am using dropdown and I want to get value of selected option.
I am able to do that using jquery html() method.
But in case selected option value is containing html encodable character lets say it is &(ampersand.)
alert('html() : ' + $('#dropdown option:selected').html());
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<select id="dropdown">
<option selected>Test & Get knowledge</option>
</select>
Then this & is encoded to &a m p;
How to treat this value as only text?