Find duplicated id and remove the one with jQuery

[javascript]
//Featured article fix//
var myFeatured = $(‘body.front div.featured’).attr(‘id’);
var theHidden;

$(‘body.front .front-latest-news div.article’).each(function(){
theHidden = $(this).attr(‘id’);

if(theHidden == myFeatured){
$(‘body.front div.front-latest-news div#’+theHidden).hide();
}
});
[/javascript]

Leave a Reply