How to traverse through an array of JSON in javascript? and use it to populate <option> element – Jquery
I have this array of JSON and I want to loop through them and use it to fill up my option element. Sample Array: var myOptionData = [ {fooValue:"1", fooText:"option A"}, {fooValue:"2", fooText:"option B"}, {fooValue:"3", fooText:"option C"} ] I did…