Tuesday, February 4, 2025

Using chrome developer tool to test css selector

 If you need to test css selector, you can use Chrome developer tool's console to do so.

For example, the below selector returns matched element id

document.querySelectorAll('#claimNumberInput')


you can also update UI to make it more visible

document.querySelectorAll('#claimNumberInput')[0].style.background=''red';

No comments:

Post a Comment