When clicking on one of the radio buttons in HTML file, I want to get the frameworks data (names and images) from data.json file and filter them according to the button chosen
{
"frameworks": {
"backend": [
{ "name": "nodeJS", "imgURL": "./img/node.png" },
{ "name": "Django", "imgURL": "./img/django.png" },
{ "name": "Ruby on Rails", "imgURL": "./img/rails.png" },
{ "name": "laravel", "imgURL": "./img/laravel.png" }
],
"frontend": [
{ "name": "ReactJS", "imgURL": "./img/react.png" },
{ "name": "Angular", "imgURL": "./img/angular.png" },
{ "name": "vueJS", "imgURL": "./img/vue.png" },
{ "name": "JQuery", "imgURL": "./img/jquery.png" }
],
"mobile": [
{ "name": "flutter", "imgURL": "./img/flutter.png" },
{ "name": "React Native", "imgURL": "./img/react.png" }
]
}
}
and i want to display the data that loaded from json file in dev that holds frameworksDisplay id
<div id="programmingFrameworks"><!--10 error-->
<h2>Frameworks</h2>
<p>The purpose of framework is to allow designers and developers to focus on building an unique feature for their web based projects rather than re-inventing by coding. Framework is specially created to help you boost the performance and efficiency of your web app development task.</p>
<div id="frameworks">
<form id="frameworksForm">
<label for="all"><input type="radio" name="frameworksSelection" id="all" value="all">All</label><!--7 error-->
<label for="backend"><input type="radio" name="frameworksSelection" id="backend" value="backend">Backend</label>
<label for="frontend"><input type="radio" name="frameworksSelection" id="frontend" value="frontend">Frontend</label>
<label for="mobile"><input type="radio" name="frameworksSelection" id="mobile" value="mobile">Mobile</label>
</form>
<div id="frameworksDisplay"></div>
</div>
</div>
can you guys help me out in this one i tried to do it but got no result so far i am still new with JS.