Answers for "add option jquery with disbled"

0

add option to select jquery

$.each(items, function (i, item) {
    $('#mySelect').append($('<option>', { 
        value: item.value,
        text : item.text 
    }));
});
Posted by: Guest on March-18-2020
0

add option to select jquery

$("#selectList").append(new Option("option text", "value"));
Posted by: Guest on April-03-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language