How to trigger the in-focus state of a button when another button is focused or has focus?
P粉257342166
P粉257342166 2024-04-02 16:49:31
0
1
455

View reference

When a (button) library name is selected or clicked, I want the next inactive button to become active (turn bright red).

I googled and found that there is a (blur) and (focus) event in angular

P粉257342166
P粉257342166

reply all(1)
P粉164942791

You can disable and enable buttons via JavaScript:

const normalButton = document.querySelector('.normal');
const disabledButton = document.querySelector('.disabled');

disabledButton.disabled = true;

normalButton.addEventListener("click", ()=> {
    disabledButton.disabled = false;
})

Click on 'aaaa' button to enable the other button

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template