Got Stuck at JavaScript and the DOM 9/16. Can you Help, please?


#1



var skillset = document.getElementsByClassName('skillset');
alert(skillset);

function main() {
$('.skillset').hide();
$('.skillset').fadeIn(1000);
$('.projects').hide();
$('.projects-button').on('click', function() {
$('.projects-button').show();
});
}

$(document).ready(main);

Did you write a selector for projects inside the click function, which is inside the main function?
Did you call show on the projects class inside the click function?



#2

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