SyntaxFix
Write A Post
Hire A Developer
Questions
you may try like this using jquery
var arr = [1,2,2,3,4,5,5,5,6,7,7,8,9,10,10]; var uniqueVals = []; $.each(arr, function(i, el){ if($.inArray(el, uniqueVals) === -1) uniqueVals.push(el); });