skip to Main Content

Json – I want, using my private API, to fetch my data but I want them to be checkboxes

Here's what I have so far main.html (it's a form btw) <div class="form-group form-check-inline"> <input class="form-check-input" type="radio" name="region" id="US" value="US"> <label class="form-check-label" for="US">US</label> </div> api.js document.addEventListener('DOMContentLoaded', () => { const urlUS = new URL("http://127.0.0.1:3000/api/v1/regionApi/regionProduct/1") document.getElementById('US').addEventListener('click', getRegionUS) function getRegionUS() { fetch(urlUS,…

VIEW QUESTION
Back To Top
Search