Detecting iPad browser in Javascript
We can detect iPad browser is by checking the user agent of a browser
if(navigator.userAgent.match(/iPad/i)){
//browser is iPhone or iPod
}
Detecting iPad browser in JQuery
jQuery(document).ready(function($){
var deviceAgent = navigator.userAgent.toLowerCase();
var agentID = deviceAgent.match(/(ipad)/);
if (agentID) {
// do your coding here
}
});
