Next ...
I want to find an element (form) that is inside a block. I use .getElementById();
to get this block.
After getting the block, I want to find the form that is in this block so that I can include an element before that form. I'm trying this way, and so far, I have not been able to:
javascript
var boardElem = document.getElementById('board-01');
var formEl = boardElem.children('#formNewTask');
It did not work ... Then I tried to use it too:
var formEl = boardElem.getElementById('formNewTask');
And the error generated is this: Uncaught TypeError: boardElem.getElementById is not a function
I'm used to jQuery. But I'm developing a project without using the framework. Any light?
Thank you!