How do I detect a mobile device (iPhone, iPad etc), using JQuery?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3514784/best-way-to-detect-handheld-device-in-jquery">best way to detect handheld device in jQuery</a>  </p>
</blockquote>



<p>Hi All,</p>

<p>I have a link on my website for the Terms &amp; Conditions in the footer...when I click this link it brings up a modal window containing the Terms &amp; Conditions. The problem is that the scroller doesnt show up in the modal window when a mobile device is present &amp; the user cannot read the full text.</p>

<p>Is there a way, when the user clicks the link, a script then detects if a mobile device is present...then redirects to a static version of the Terms &amp; Conditions page?</p>

<p>I would be grateful if someone has a snippet of JQuery/JavaScript that does this as I'm a beginner at both JQuery and JavaScript. Thanks in advance</p>
