jQuery 1.9.1, HTML, CSS, JavaScript
No-Library (pure JS), HTML, CSS, JavaScript
jQuery 1.5, HTML, CSS, JavaScript
/w CSS
jQuery 1.7.1, HTML, CSS, JavaScript
jQuery 1.10.1, HTML, CSS, JavaScript
jQuery 1.8.3, HTML, CSS, JavaScript
jQuery 1.6.2, HTML, CSS, JavaScript
This code adds the class "active" to the <a> tags with the class "link" when the element with the same ID as the HREF value is reached.