So, i´m trying to change a text for an option with jquery.
HTML
<select id="mySelect"> <option value="change me">Change me</option> </select> JS
$(document).ready(function() { $('#mySelect').select2(); $(document).find('option[value="change me"]').text('Changed'); }) Well, nothing happends.
It´s important to change the text "live".
Fiddle: https://jsfiddle.net/gmt22ffL/2/
Is this even possible?
I´m using Jquery plugin "Select2" for my select.