How to make DOM changes done in plain JS available to a jQuery function?
I am adding a row to a table with some form elements using plain JS as:
var newRow = firstRow.cloneNode(true);
table.appendChild(newRow);
var newRowCells = newRow.getElementsByTagName("td");
...
One of the elements in the row is a dropdown. I want the dropdown in this
newly added row to respond to jQuery function that handles
$(#dropdown).change()
Any ideas? Thanks in advance !!
No comments:
Post a Comment