Home > Article > Web Front-end > Js implements the current click on the a label to change color and highlight other a labels to return to the original color_javascript skills
When a page has multiple a tags, and when clicked, it will jump to the current page. How can the clicked tag change color and be highlighted, and other tags return to their original colors?
Use JS to achieve:
Assume the current page is "1.aspx"
1. Set the value of a tag ID: