Matching element with content, and if not found, add it
from:

Okay. I have two unordered lists. The list elements in each list is either active, or deactivated (one list for active elements, and one for deactivated). The user who has access can click on a deactivae/reactivate button in each list element, and move the element to the other list. All this works, no problem.

However, I'm abusing the list a bit, and creating certain list elements with the class "heading" - these are assigned a value, of which there are corresponding list elements that can...

Matching element with content, and if not found, add it

Poster :
PoPSiCLe