bharstore,
You do realize that an ID can appear only once on a page, don’t you?
If you were using the same ID twice, then changing one of them to a class or to a unique ID was the proper resolution.
Personally, I avoid IDs like the plague and only use them where needed (for JavaScript or on-page links).
Cheers.