I want to make number 90 as default value.
Anyone know how to apply selected element like in HTML below into jQuery?
Example in HTML
<select id="threshold">
    <option value="90" selected>90</option>   /* example selected in HTML */
</select>
How to apply selected in jQuery whereby number 90 as default value?
$("#threshold").append($("<option>",{value: "70",text: "70%"}));
$("#threshold").append($("<option>",{value: "80",text: "80%"}));
$("#threshold").append($("<option>",{value: "90",text: "90%"}));
 
     
    