Lesson 6 hide()


#1



the error message is $expect is not defined how could solve this


function main() {
  $('.skillset').hide();
}

$(document).ready(main);


#2

try this
function main() {
$('.skillset').hide();
$('.skillset').fadeIn(1000);

$('.projects').hide();

$('.projects-button').on('click', function() {
$(this).next().slideToggle(400);
$(this).toggleClass('active');
$(this).text('Projects Viewed');
});
}

$(document).ready(main);


#3

Same problem again, not work. Stuck on this lesson for more than 2h....


#5

Anyone could help me......


#6

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