hernansartorio / jquery-nice-select

A lightweight jQuery plugin that replaces native select elements with customizable dropdowns.
http://jqueryniceselect.hernansartorio.com
957 stars 286 forks source link

Selected option retains html tags #95

Open shubhamprk175 opened 4 years ago

shubhamprk175 commented 4 years ago

The initially selected options retain the HTML tags, once you select a different option it removes the HTML tags from the selected option and just copies the text inside the tags by using the text() method. So, I have changed text() method to html().