• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Remove duplicate rows of table using javascript

Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am trying to remove a duplicate rows from a table which are created dynamically. But it doesnt work. Please help me to solve this.


ABC 123
CDE 245
ABC 123

By using javascript, we should give an alert to the user like duplicate item found.

I tried with below code. But it compares the previous row with current row. I need to compare ABC123 with all rows CDE245 and ABC123.

Posts: 67418
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is an algorithms problem. And I'm going to give the same advice that's frequently given for similar problems in the Java forums. StopCoding (⇐ that's a link)

Just stop. Step away from the keyboard and follow the advice in that FAQ entry,
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic