pumpkinapo
Programmer
Here's my problem...
I'm using cloneNode() to copy 4 rows of a table. This works fine, however there's a js that when cloned is not working. Only when the js is cloned does the script not execute.
In the linked example, clicking on "Notes" will work for the first entry. It will show/hide a textarea. Then, clicking on "Add New Entry" will append a new entry row with the "Notes" textarea visible, but clicking on "Notes" does not hide the textarea.
So, do DOM (cloneNode) created javascript commands not work? Or am I doing something wrong?
Example:
I'm using cloneNode() to copy 4 rows of a table. This works fine, however there's a js that when cloned is not working. Only when the js is cloned does the script not execute.
In the linked example, clicking on "Notes" will work for the first entry. It will show/hide a textarea. Then, clicking on "Add New Entry" will append a new entry row with the "Notes" textarea visible, but clicking on "Notes" does not hide the textarea.
So, do DOM (cloneNode) created javascript commands not work? Or am I doing something wrong?
Example: