[jQuery] Unique List - conceptual walk through
Hello all,
I'm pretty new to jQuery, but I'm really impressed with it so far. I'm
just starting to get the power of returning the query object itself in
order to chain manipulations.
I'm trying to work through a problem and could use some input on what
functionality I can use. Some of this question may cross over to UI
but, I think it mostly falls in the core.
I've got a list of names in some column. Some of the names are
variants of each other. Like "John Adams" and "J. Adams". These names
have a corresponding ID like 1234 and 1235. I'm trying to make an
interface for creating groups of those values and determining one of
those values to be the primary one. These groups will then be
outputted to a configuration for unifying those values somewhere else.
That same output could later be brought in. When they are brought
back in, I need to create the groups again, and remove them from the
list. Essentially like it was a saved state. Eventually, there will be
another layer, because I'll have another list, say.... of Places.
I've started adding data cache's to the divs I'm moving around for
each member of the list. I'm having trouble making sure that the
members from the list only show in one group, and that it is marked
from the original list, but not removed.
So, after all that, my main question is, am I on the right track using
data cache's on the divs? Should I be manipulating arrays to do this?
are there some parts of the jQuery library that I'm just not seeing
the value in to do the things I want to do?
Marc