I have a function that is called when I click on an item. And inside this function I can refer to it. But how to find out the whole "path" or I don’t know how to say exactly to the element, so that I can refer to it from other functions?
I have a function that is called when I click on an item. And inside this function I can refer to it. But how to find out the whole "path" or I don’t know how to say exactly to the element, so that I can refer to it from other functions?
Source: https://ru.stackoverflow.com/questions/593108/
All Articles
idattribute to your element, for example<div id="div-123">and ...var element = document.getElementById("div-123")- Sergey