Streaming live at 10am (PST)

First jQuery code works partially

I have just written my first jQuery code and it works partially. Completely it works only on the second click. My goal is that when you click on the filter digital, the thumbnail to digital is displayed. This thumbnail has the class “.digital” and for print the class “.print”. The filters button have the same name as ID.

I have written the following code for this:

setTimeout(function(){
//Show Branding
  jQuery('#branding').click(function(){
    jQuery('.digital').hide();
    jQuery('.print').hide();
  });

//Show Digital
  jQuery('#digital').click(function(){
    jQuery('.print').hide();
    jQuery('.digital').show();
  });

//Show Print
  jQuery('#print').click(function(){
    jQuery('.digital').hide();
    jQuery('.print').show();
  });
});

Here is my site Read-Only: Webflow - Schmid+Wolf / The only one
(how to share your site Read-Only link)

Has nobody an idea? Maybe you @samliew ?

You’re using a timeout function without a timeout duration.