I have a toggle round button which I have used the below javascript to make the switch, however it doesn't move - I have test the link with the js file with an alert and it does work though.
let touchIdN = document.getElementById('touchidN');
let touchIdY = document.getElementById('touchidY');
touchIdN.hidden = false;
touchIdY.hidden = true;
let enableTouchId = () => {
touchIdY.hidden = false;
touchIdN.hidden = true;
}
let disableTouchId = () => {
touchIdY.hidden = true;
touchIdN.hidden = false;
}
touchIdN.onclick(enableTouchId);
touchIdY.onclick(disableTouchId);
my html goes as follows for both options being the #touchidY display hidden on my CSS
<tr>
<td><img src='./icons/[email protected]'></td>
<td>Enable Touch ID</td>
<td>
<label class="switch" id='touchidN' onclick='enableTouchId()'>
<input type="checkbox">
<span class="slider-round"></span>
</label>
<label class="switch-yellow" id='touchidY' onclick='disableTouchId()'>
<input type="checkbox">
<span class="slider-back"></span>
</label>
</td>
</tr>
the above is inside a table on my html