I made some changes and now data is displayed in the drop down but it is parsed vertically one letter at a time per line and displayed not only name and id but all the characters including “, {, R, O, W, S… so, either my javascript has some problem or to apply some json formatting in the cfc?
Data from cfc looks like this:
{“ROWS”:[{“id”:”5_1″,”name”:”ABC Company”},{“id”:”10_2″,”name”:”ABC Inc, Main Division”},{“id”:”24_3″,”name”:”Mines – Hourly Program”},{“id”:”22_3″,”name”:”Mines – Salaried Program”},{“id”:”6_1″,”name”:”Capital Realty”}]}
I changed javascirpt since I already receive JSON to this:
Old:
function(data) {