fiftynineseconds/jquery-duplifer.js

Allow several columns to be searched for duplicates

Opened this issue · 3 comments

This is a cool plugin! Forgive my ignorance, but is there a way to search several different columns for duplicates? I tried applying the th class "duplifer-highlightdups" to more than one column and it seems to only work for one of them.

Any help would be appreciated.

Thanks

Hi! Are you looking to identity values that are duplicated across columns, or values that are only duplicated within each column?

It's true that right now a limitation of this plugin is that it only supports looking for duplicates in one column.

Let me know more about how you're looking to use it and maybe we can improve the code.

J

Thank you for the prompt reply. I am looking to just identify more duplicates within another column. No need to cross columns. Is there any way this can easily be done?

Thanks

Matt

It's possible. Since it's written to only include one column, I think it needs to be modified to return the index of every td that has a th class containing the hightlight class, then loop through them all instead of just using the first one it finds.

Keep this issue open and I'll work on it as I'm able. If you wanted to give it a shot, I would start by looking at line 22 and returning all columns instead of just the first one it encounters, then performing all below code actions for each element.

Jason