create option nodeElement using JQuery
decayingMind
javascript
2 years ago
238 B
2
Indexable
const value = "option value"
const text = "option text"
let option = $('<option>', {
value: value
text: text
});
// modifying option properties
option.prop({
selected: true,
disabled: true
});Editor is loading...