Thank you, in advance, for those who answer =) I\'m trying to switch between divs when i click the links with the respective class (as follow on the code bellow). It works f
$('#cont').click(function(e) { e.preventDefault(); var idToSlide = $(this).attr('class'); $('#' + idToSlide).slideToggle(500); });