Currently, I have a table that filters with a dropdown menu full of keywords, using JavaScript.
I am hoping to make an OnClick event, where people can filter the table by clicking on keywords within the table itself. I hope that clicking on a keyword can automatically update the dropdown menu selection.
Here is a sample pen, which I tried to simplify. Excuse the mess! I haven't cleaned the code yet... : https://codepen.io/ra3ra3/pen/gOxwwaZ )
<tr>
<td>Place 1</td>
<td>Historical Societies<br>Museums</td>
<td>###-###-####</td>
<td>Street<br>City, State<br>Zip</td>
</tr>
<tr>
<td>Place 2</td>
<td>Collective Identity<br>Ethnicity<br>French</td>
<td>###-###-####</td>
<td>Street<br>City, State<br>Zip</td>
</tr>
<tr>
I am getting ready to try and code this from scratch, but I am hoping to find other templates that already do this, to speed up the process. Though, I can't find any...
Does anyone have any suggestions, or templates to share?