I have a list of links with some links that are identical. I wish I could remove the links with a similar script jquery but impossible to put an object into an array jquery. Let me explain with the code:
Code:
tableau_lien var = new Array ();
var z = 0, / / count the number of links
$ ("# Div-link"). Find ("a"). Each (function ()
{
tableau_lien [z] = $ ("this");
/ / Test with tableau_lien [z] = $ ("this"). Html ();
/ / Test with tableau_lien [z] = $ ("this"). Val ();
/ / If there is a duplicate
if ($. inarray ($ ("this"), tableau_lien)! = -1)
{
alert ("youhou duplicate found");
}
z = z + 1;
});
Any idea related to this or any solution for this problem.
Bookmarks