title: setTimeout not working on safari mobile
body: <p>I have a function that shows a menu when clicking on it, and I want it to disappear after  5 seconds. This is my javascript - it works properly on desktop browser but it doesn't disappear on the mobile ones.</p>
  
  <pre><code>$(function() {
      $('#prod_btn').click(function() {
          $(this).addClass('selected').next('ul').css('display', 'block');
          setTimeout(hideMenu, 5000);
      });
  });
  
  function hideMenu() {
      $('#prod_btn').removeClass('selected').next('ul').css('display', 'none');
  }
  </code></pre>
  
  <p>Where is the problem?</p>
  
  <p>Thanks</p>