My goal was to make links interactive using JQUERY when they are clicked.
After some research, I discovered a code snippet on stackoverflow that seemed to work well. However, when I clicked on the links, they would become bold or active as intended, but they wouldn't redirect to the correct page. For example:
<li><a href="term-conditions.html">Terms & Conditions</a></li>
Whenever I clicked on the Terms & Conditions link, it would not redirect to the proper page despite appearing active.
<script type='text/javascript'>//<![CDATA[
$(window).load(function(){
$('li a').click(function(e) {
e.preventDefault();
$('a').removeClass('active');
$(this).addClass('active');
});
});//]]>
</script>