Here is a simple javascript function do remove the duplicate values in an array. It worked very well for what I needed it for, although it may not be full proof for your application.
function dedupArray(array)
{
array.sort();
var cnt = array.length - 1;
var i=0;
var keepers = new Array();
while(i <= cnt){
if(array[i] != array[i + 1]){
keepers.push(array[i]);
i++;
}else{
array.shift();
}
cnt = array.length - 1;
}
return keepers;
}
UPDATE!! A plugin is now available for this tutorial that includes more features read more...
How often do you work with tables? I work with them quite a bit and styling t read more...
When running a site with a boat load of javascript, you may want to run a script read more...
Download Plugin THEMES: theme-lighttheme-dark<link href="{{ path to js read more...
Greetings All! Since everyone was digging the Star Comment Rating I decided that read more...