title: How to detect a mobile device using jQuery
body: <p>Is there a way to detect whether or not a user is using a mobile device in jQuery? Something similar to the CSS <code>@media</code> attribute? I would like to run a different script if the browser is on a handheld device.</p>
  <p>The jQuery <code>$.browser</code> function is not what I am looking for.</p>