Answer the question
In order to leave comments, you need to log in
How to add a tag to a page?
I have a list of elements on the page
<h2 class="node-title"><a href="1">1</a></h2>
<h2 class="node-title"><a href="2">2</a></h2>
<h2 class="node-title"><a href="3">3</a></h2>
....
<a href="edit">edit</a>
var edit = document.createElement('a');
edit.innerHTML = 'edit';
node-title.appendChild(edit);
Answer the question
In order to leave comments, you need to log in
Let me turn on telepathy, and even guess what error it shows. Telepathy is indispensable here.
Something like "node is not defined", am I right? Because you have node-title...
something there (node variable MINUS title variable...), but you did not declare the node variable.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question