I know its bad, I know ID is unique and I need to fix it on massive scale on some set of pages.
I dont know what are those ID, I only know class of it, so is it possible to somehow do
$('.someClass').itemsThatHasIdDuplicate().each(function(){
$(this).attr('id', Math.random()); //its stupid to use random for ID, but shows what I mean
});
ps. I've found this, but this assumes that you know what the ID is.