I am currently utilizing a method similar to the one outlined in this resource from w3 schools for filtering elements within divs. However, I am facing challenges when attempting to integrate this script into my Aurora Wordpress site due to the removal of the onclick() function. Does anyone know of a workaround that would allow me to filter elements without relying on this function or bypassing the blocking issue? I have explored using shortcodes as potential solutions, but most examples I found were based on href links rather than input buttons (or preferably a drop-down select feature in the future), and my efforts to implement them have been unsuccessful. Here is a brief example of how it is used (the complete JS code is available on the link mentioned at the beginning of this question).
<input type="radio" onclick="filterSelection('all')" name="category" checked>Show all<br>
<input type="radio" onclick="filterSelection('1')" name="category"> Option 1
<input type="radio" onclick="filterSelection('2')" name="category"> Option 2
and so forth