Disappearing act

Howdy and welcome to the forum!

Please post your code formatted properly. This link will show you how: [Essentials] How To Post/Format Your Code Correctly

That being said, notice the difference in these three lines of code (not the comment)? Only one of them is correct:

    var showButton = ("#showButton"); 
    // Create the variable 'hideButton' to store #hideButton 
    var hideButton = ("#hideButton");
    var image = $("#image");
2 Likes