Can anyone tell me how to select a random key and corresponding item value from the following object using Javascript/JQuery?
var choose_one = { "key 1" : "item 1", "key 2" : "item 2", "key 3" : "item 3" };
Many thanks.
Aucun commentaire:
Enregistrer un commentaire