Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-compat/3.0.0-alpha1/jquery.min.js"></script>
<script>
$(document).ready(function () {
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
if (screen.width <= 768) {
$(".mobile_device").text("mobile device");
}
else
{
$(".mobile_device").text("tablet");
}
}
else
{
$(".mobile_device").text("other device");
}
});
</script>
</head>
<body>
<div class="mobile_device"></div>
</body>
</html>
The most helpful JQUERY solutions
plugin get client ip address using jqueryJQUERY Click to see more ... 10.5K 1.8K