I am looking to implement a feature where the border of a button changes when clicked once and reverts back when clicked again. This should apply individually to each of the 16 buttons with the same class. Additionally, I want to enable the ability to click on multiple buttons simultaneously or all at once.
HTML
<button onclick="TogglePkgGroups('M16.1')" class="pool" id="M16.1">M16.1</button>
<button onclick="TogglePkgGroups('M16.2')" class="pool" id="M16.2">M16.2</button>
<button onclick="TogglePkgGroups('M17')" class="pool" id="M17">M17</button>
<button onclick="TogglePkgGroups('MR17')" class="pool" id="MR17">MR17</button>
<button onclick="TogglePkgGroups('MSS16c')" class="pool" id="MSS16c">MSS16c</button>
<button onclick="TogglePkgGroups('MSS17')" class="pool" id="MSS17">MSS17</button>
<button onclick="TogglePkgGroups('MSS17c')" class="pool" id="MSS17c">MSS17c</button>
<button onclick="TogglePkgGroups('T15.0')" class="pool" id="T15.0">T15.0</button>
<button onclick="TogglePkgGroups('T15.0c')" class="pool" id="T15.0c">T15.0c</button>
<button onclick="TogglePkgGroups('T15.5')" class="pool" id="T15.5">T15.5</button>
<button onclick="TogglePkgGroups('T15.5c')" class="pool" id="T15.5c">T15.5c</button>
<button onclick="TogglePkgGroups('T15.8')" class="pool" id="T15.8">T15.8</button>
<button onclick="TogglePkgGroups('T15.8c')" class="pool" id="T15.8c">T15.8c</button>
<button onclick="TogglePkgGroups('T16.2')" class="pool" id="T16.2">T16.2</button>
<button onclick="TogglePkgGroups('T16.2c')" class="pool" id="T16.2c">T16.2c</button>
<button onclick="TogglePkgGroups('T16.5')" class="pool" id="T16.5">T16.5</button>