Detecting iPods, iPads and iPhones using Javascript
Published under Javascript, Mobile
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {
$(“p#iphone”).css({‘display: block’});
}
Published under Javascript, Mobile
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {
$(“p#iphone”).css({‘display: block’});
}