×Welcome aboard! We are happy you are here and wish you good net-raft!



Together We Can Simplify The World

the current number of solutions:  2379
.htaccess (1x)    AJAX (13x)    ANGULARJS (161x)    ASP (1x)    ASP.NET (6x)    BACKBONE.JS (47x)    BOOTSTRAP (12x)    C# (226x)    COFFEESCRIPT (28x)    CSS (71x)    HTML (47x)    JADE (34x)    JAVA (51x)    JAVASCRIPT (432x)    JQUERY (395x)    JQUERY MOBILE (5x)    JSON (5x)    LARAVEL (27x)    MYSQL (9x)    NODEJS (162x)    ORACLE SQL (19x)    PERL (2x)    PHP (302x)    PYTHON (10x)    REACT (62x)    RUBY (25x)    RUBY ON RAILS (1x)    SHELL (2x)    SQL (90x)    SQL SERVER (3x)    TYPESCRIPT (51x)    VB.NET (33x)    W3.CSS (6x)    W3.JS (40x)    
join us

click to create your account

detect ipad jquery

(jquery detect ipad )

- JQUERY

 viewed 7

Comment:
JQUERY

0

<!DOCTYPE html>
<html>

<head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js " type="text/javascript "></script>
</head>

<body>

<div id="myID"></div>

<script type="text/javascript">

$(document).ready(function () {

if (navigator.userAgent.match(/Android/i)) {$("#myID").text("Android");}

if (navigator.userAgent.match(/BlackBerry/i)) {$("#myID").text("BlackBerry");}

else if (navigator.userAgent.match(/iPod/i)) {$("#myID").text("iPod");}

else if (navigator.userAgent.match(/iPhone/i)) {$("#myID").text("iPhone");}

else if (navigator.userAgent.match(/iPad/i)) {$("#myID").text("iPad");}

else if (navigator.userAgent.match(/Windows Phone/i)) {$("#myID").text("Windows Phone");}

else if (navigator.userAgent.match(/webOS/i)) {$("#myID").text("webOS");}

else {$("#myID").text("something else");}

});

</script>

</body>
</html>

     

created: 3 months ago

The power of the user (%)

36%

Do you know a little more effective code ? Feel free to optimize ...


haven't you found what you're looking for ?
Write us your question ...
Login is not needed.


The most helpful JQUERY solutions
Likes Solution Technology
774 plugin get client ip address using jqueryJQUERY
413 plugin detect country jqueryJQUERY
302 cookie jqueryJQUERY
238 plugin convert thousands to K jqueryJQUERY
209 How to detect the version of IE browser using jquery ?JQUERY
193 How to get top, right, left, bottom position of element div using jquery ?JQUERY
153 how to get ip address using jquery ?JQUERY
146 how to get the value from an object using jquery ?JQUERY
134 jquery plugin for getting client ip addressJQUERY
122 how to create a jquery plugin for converting date to days ago, month ago and year ago ?JQUERY
Check out all of JQUERY ...
The most viewed JQUERY solutions by country
Solution Country
How to get client machine name or computer name with jquery?Cinque Terre
How to get client machine name or computer name with jquery?Cinque Terre
How to get client machine name or computer name with jquery?Cinque Terre
How to get client machine name or computer name with jquery?Cinque Terre
How to get client machine name or computer name with jquery?Cinque Terre
How to get client machine name or computer name with jquery?Cinque Terre
How to get client machine name or computer name with jquery?Cinque Terre
How to get client machine name or computer name with jquery?Cinque Terre
How to get client machine name or computer name with jquery?Cinque Terre
How to get client machine name or computer name with jquery?Cinque Terre