[Solved] How to add text in option using jquery? [closed]


Try this code:
HTML:

<span id="text1">Medium Tail</span>

JS: you can use empty and append method to do that:

$(document).ready(function(){
$("#text1").empty().append("Medium Tail/Popular");
});

Plz check it out: http://jsfiddle.net/o1f77e1y/

1

solved How to add text in option using jquery? [closed]