Wednesday, 5 May 2021

JQUERY12

 <html>

<head>

<script src = "https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>

<script>

names = { "names1": "Adhira", "names2": "Akira", 'names3': "Abira" };

$(document).ready(function(){

$.each(names, function(key, value) {

$('#Select').append($("<option/>", {

value: key,

text: value

}));

});});

</script>

</head>

<body>

<div id="Select"></div>

</body>