Replies: 1 comment
-
Hey, you'll want to do standard DOM manipulations and for example, generate Please note that this is not related to htmx at all, as you're fetching data with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an API that returns axios JSON response
axios.get('/countries')
.then(function (response) {
const obj = JSON.parse(response.data);
// response.data.forEach(console.log(count.name));
console.log(response.data);
}
This returns sample JSON response as below
[
{
"name": "Afghanistan",
"code": "AF"
},
{
"name": "Åland Islands",
"code": "AX"
},
]
For each item of response data how to populate this in html select drop down
Beta Was this translation helpful? Give feedback.
All reactions