Jump to content

nextSibling not working after I cloneNode


Day
 Share

Recommended Posts

I have a script that is using cloneNode to add fieldsets to a form. After I use cloneNode, I'm attempting to search through the new node's children to change id attributes, however nextSibling is returning an empty text node instead of the fieldset.After the first one is cloned, the and I clone the second, nextSibling begins to return a fieldset. Im not sure why the first one won't work.Can anyone offer some insight?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...