Javascript dom 12ex this


#1


when i click recent projects it still opens all of them.


Replace this line with your code. 
function main() {
$('.skillset').hide();
 $('.skillset').fadeIn(1000);
  $('.projects').hide();
   $('.projects-button').on('click', function() {
       $('.projects').toggle();
     $(this).toggleClass('active');
   });
}
 $(document).ready(main);


#2

This topic was automatically closed after 7 days. New replies are no longer allowed.