My table contains the following data:
info = [
{id: 1, name: 'Manchester United', type: 'Soccer', featured: true, country: 'England'},
{id: 2, name: 'Manchester City', type: 'Soccer', featured: false, country: 'England'},
{id: 3, name: 'Dallas Mavericks', type: 'Basketball', featured: true, country: 'USA'},
{id: 4, name: 'Indian Cricket Team', type: 'Cricket', featured: true, country: 'India'},
{id: 5, name: 'Australian Cricket Team', type: 'Cricket', featured: false, country: 'Australia'},
{id: 6, name: 'Los Angeles Lakers', type: 'Basketball', featured: true, country: 'USA'},
{id: 7, name: 'Los Angeles Clippers', type: 'Basketball', featured: false, country: 'USA'}
];
I'm trying to include a dropdown menu for countries. When a country is selected, I want the table to display only sports from that specific country.
The issue I'm facing is that I can't seem to populate the dropdown with unique countries.
Any assistance would be greatly appreciated. Thank you in advance.