Below is the object returned from backend:
[Object]0: Object Option_Name_0: null Option_Name_1: "me" Option_Name_2: "you" Option_Name_3: "get" Option_Name_4: "no"__proto__: Objectlength: 1__proto__: Array[0]
I am just trying to populate the values into dropdown menu, by removing "null" value.
$.each(e, function(i) {
$.each(e[i], function(key, val) {
if (val != 'null') {
$(".flash_bet_win").append("<option value=" + val + ">" + val + "</option>");
}
});
});
But still I see "null" value in dropdown menu. How to fix this?