Unique Values Get In Jquery array

At present, i we are going to present you distinctive values get in jquery array. This text provides you with easy instance of distinctive values get in jquery array. you’ll study distinctive values get in jquery array. So let’s observe few step to create instance of distinctive values get in jquery array.

Preview:
Unique Values Get In Jquery array

Instance


<!DOCTYPE html>
<html>
<head>
   <title>Distinctive Values Get In Jquery array</title>
   <script src="https://code.jquery.com/jquery-1.12.4.js"></script>
</head>
<physique>
  
<script kind="textual content/javascript">
    var websites = ["mohan","rakesh","krishan","mohan"];
  
    var uniqueSites = websites.filter(operate(merchandise, i, websites) {
        return i == websites.indexOf(merchandise);
    });
  
    console.log(uniqueSites);
</script>
  
</physique>
</html>

Komentar

Postingan populer dari blog ini

PHP 8 Multiple Select Dropdown Example

Laravel 8 Get HTTP Hostname

JQuery Drag And Drop Menu Example