title: Detect IOS 8 with jQuery
body: <p>I have googled and and tried many ideas but they either mess up the entire site on all browsers, or they are really old, or they are javascript and not jQuery. I am exhausted.</p>
  
  <p>Currently this works for detection IOS, but not a version:</p>
  
  <pre><code>$(document).ready(function() {
      var deviceAgent = navigator.userAgent.toLowerCase();
      var agentID = deviceAgent.match(/(iphone|ipod|ipad)/);
      if (agentID) {
  
  ... do something here
  
      }
  });    
  </code></pre>
  
  <p><strong>How can I add just IOS 8 detection inside this so I can just create an html class "ios-8" "no-ios8" or equivalent.</strong> </p>