i want the functionality to be when i select and option i want that option to contain one of the ID’s from the array of objects
<label for="selectTechCompany">Tech Company</label>
<select
class="form-select"
id="selectTechCompany"
aria-label="Default select example"
>
<option selected>Select</option>
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">three</option>
<option value="4">four</option>
<option value="5">five</option>
</select>
</div>
*** below is the array of objects
0
:
{id: 84114, slug: '54146064986150486516464', statusId: 'Active', name: 'techCompany5', headline: 'headline5', …}
1
:
{id: 84113, slug: '5414606498615086516464', statusId: 'Active', name: 'techCompany4', headline: 'headline4', …}
2
:
{id: 84112, slug: '541460649861508651646', statusId: 'Active', name: 'techCompany3', headline: 'headline3', …}
3
:
{id: 84111, slug: '541460649861508651645', statusId: 'Active', name: 'techCompany2', headline: 'headline2', …}
4
:
{id: 84110, slug: '30110974915602206', statusId: 'Active', name: 'techCompany1', headline: 'headline1', …}
5
:
{id: 84108, slug: '130166580319', statusId: 'Active', name: 'techCompany1', headline: 'headline1', …}
6
:
{id: 84104, slug: '0916503104153049', statusId: 'Active', name: 'techCompany1', headline: 'headline1', …}
7
:
{id: 84100, slug: '79841562130', statusId: 'Active', name: 'techCompany1', headline: 'headline1', …}
8
:
{id: 84098, slug: 'slug1', statusId: 'Active', name: 'techCompany1', headline: 'headline1', …}
i know that ill have to use jquery i just dont know what the end results supposed to look like