How to get ip address in jquery?

How to get ip address in jquery?

In this post we will give you information about How to get ip address in jquery?. Hear we will give you detail about How to get ip address in jquery?And how to use it also give you demo for it if it is necessary.

you can get ip address in jquery using getJSON(). If you need to get ip address in your js file you can get easily. In this example you can see how to get ip address in jquery. So let’s try with this…

Example

<html lang="en">

<head>

<title>Jquery - get ip address</title>

<script type="text/javascript" src="//cdn.jsdelivr.net/jquery/1/jquery.min.js"></script>

</head>

<body>


<h1>Your Ip Address : <span ></span></h1>


<script type="text/javascript">

$.getJSON("http://jsonip.com?callback=?", function (data) {

$(".ip").text(data.ip);

});

</script>


</body>

</html>

Hope this code and post will helped you for implement How to get ip address in jquery?. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve us. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs

For More Info See :: laravel And github

Leave a Comment

Your email address will not be published. Required fields are marked *

5  +  1  =  

We accept paid advance and paid guest Posting on our Site : Contact US