Skip to content
Advertisement

How to make a dropdown of the data receive from ajax response as array of objects

I want to make a dropdown in my table which is populated with the dynamic data coming from ajax response and append to the table. My postman collection looks like this.

JavaScript

And below is my ajax response code in which I am appending the data into table.

JavaScript

The itme.children name , age I want to make a dropdown of it into table so it looks good.

Advertisement

Answer

If you mean a dropdown like a select menú, this should do the job

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement