Welcome aboard! We are happy you are here and wish you good net-raft!
<!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>
The most helpful JQUERY solutions