Horje
javascript array key value  html select Code Example
javascript array key value html select
var massiv = [ { "key": 0, "duration": 4, "price": 1000000 },{ "key": 1, "duration": 6, "price": 1250000 },{ "key": 2, "duration": 12, "price": 1500000 }, ];

var elementString = "<select>";
for (var i in massiv) {
  elementString += '<option value="'+massiv[i].duration+'">'+massiv[i].price+'</option>';
}    
elementString += "</select>";

console.log(elementString)




Javascript

Related
percentage width react native Code Example percentage width react native Code Example
Get the <html> tag with JavaScript Code Example Get the <html> tag with JavaScript Code Example
double matrix iteration in react Code Example double matrix iteration in react Code Example
rectbutton disable Code Example rectbutton disable Code Example
exit from fullscreen Code Example exit from fullscreen Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9