
In javascript how to find the duplicate or variable that contains same value for example ...two different variables contains the same URL Link.

//To loop through use this
$("a:contains('Add new item')").each(function(){
alert($(this).attr('href'));
});
// You can also grab them by index
var first = $("a:contains('Add new item')").eq(0);
var second = $("a:contains('Add new item')").eq(1);
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.