js get custom attribute

Solutions on MaxInterview for js get custom attribute by the best coders in the world

showing results for - "js get custom attribute"
Finn
16 Aug 2020
1document.getElementById("divId").getAttribute("attributeId");
Santino
16 Jul 2017
1document.querySelector("div[data-automation='something']")
2
3Select element by custom attribute