title: Toggle CSS Javascript Function
body: <p>I'm trying to show this CSS on the first click and remove it on the next but toggleClass doesnt seem to work and neither does my code below. All I can get is the CSS to show and it never gets removed. This is for use on Safari on iOS. Thanks for the help!</p>
  
  <pre><code>                var menu_enabled = false;
  
                  $('#nav a').click(function () {
                      if (menu_enabled == true) {
                          $(this).removeClass('sf-js-enabled');
                          var menu_enabled = false;
                      }
                      else {
                          var menu_enabled = true;
                          $(this).addClass('sf-js-enabled');
                      }
                  });
  </code></pre>