You have Element.replaces that works like
newElement.replaces(oldElement)
But in my case I have an array of elements to replace one element. so
[elements].replace(oldElement)

Isn't there a smarter way than this one: http://jsfiddle.net/nbmsj/
it feels quirky this way

Reply via email to