Thanks for providing that function. To summarize, the answer to my
question is to use

  var properties = $("oldElement").attributes;

to get an array of all the attributes then loop through the properties
calling

  $("newElement").setProperty(properties[i].nodeName,
properties[i].nodeValue);

to copy the property name,value pairs that I want. (In my case, I
first check to see if the nodeName contains "data-" before copying it)

On Apr 12, 12:21 pm, Fábio M. Costa <[email protected]> wrote:
> Hi batman, this shell shows how you could do it.
>
> http://mootools.net/shell/fabiomcosta/Rpmjb/
>
> I see a lot of people needing this kind of functionality, maybe they will
> reach this too.
> If you find any bug please tell me.
>
> --
> Fábio Miranda Costa
> Solucione Sistemas
> Engenheiro de interfaces
> - Show quoted text -


-- 
To unsubscribe, reply using "remove me" as the subject.

Reply via email to