1. cliveportman
  2. /code
  3. /detecting-ipods-ipads-and-iphones-using-javascript

Detecting iPods, iPads and iPhones using Javascript

if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {
    $(“p#iphone”).css({‘display: block’});
}