I convert my code from HTML.js to DOMx but get the following error.
Uncaught HierarchyRequestError: Failed to execute 'appendChild'
on 'Node': Only one element on document allowed.
I get this error when I try to do that:
var tr = table.query('tbody').append('tr');
tr.append('td').textContent = '-';
fields.each(function(field) {
var td = tr.append('td'); // HERE I GET THE ERROR
});
What I'm trying to do in this code is:
- Insert a new line in a table
- Fill the first
td with a -
- Fill the next
td with values from a form
- The last
td I put a link
If you need a complete code, tell me.
I convert my code from HTML.js to DOMx but get the following error.
I get this error when I try to do that:
What I'm trying to do in this code is:
tdwith a-tdwith values from a formtdI put a linkIf you need a complete code, tell me.