Multidimensional Array in javascript -
i have this: var selectathing = { "id" : "productname" , "5" : "abc" , "29" : "efg" , "28" : "hij" , "11" : "xyz" "23" : "efg" , "15" : "hij" , "40" : "xyz" }; $.each(selectathing, function(key, value) { $('.myselect') .append($('<option>', { value : key }) .text(value)); }); now showing this: <select> <option value="5">abc</option> <option value="11">abc</option> <option value="15">abc</option> <option value="23">abc</option> <option value="28">abc</option> <option value="29">abc</option> <option value="40">abc</option...