jQuery 1.9.1, HTML, CSS, JavaScript
jQuery 1.10.1, 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.