https://jsfiddle.net/rtGk6/1/ I found this code at http://www.codeitive.com/7HiSPeVjXj/toggle-hidden-divs-by-clicking-on-navigation.html works great untill I take it out of jsfiddle and apply it to my page. I have tried everything i can think off to make it work but no luck it does not function one bit.I have 4 sections on 1 page I need to be able to toggle content in each section with out conflicting the other sections on the page.I could use some help with this issue.Thank You.
$('.links').click(function() {
var id = $(this).attr('id').split('-').pop();
$('.navLinks,.navLinksb,.navLinksc,.navLinksd').hide();
$('#'+id).show();
})