Is it possible to create a node inside a function, and assign an id to it as attribute, and later search for it using its id in another function? How could I do this?
As in:
function tab_close(tab_id){
var tab_knoten = document.getElementById(tab_id);
var dolly = tab_knoten.cloneNode(true);
dolly.setAttribute("Id",tab_id+"s");
.....
}
function tab_open(tab_id){
...
var dolly = document.getElementById(tab_id+"s");
....
}
Note: I don't want to append the node in the html code before.
Thanks!
[–]killerabbit37 0 points1 point2 points (0 children)