I have a button:
<button id="btn:1:uniquenamehere">btn</button>
the number in the middle sometimes changes due to other frameworks internal workings. I need to be able to find this button no matter the number in the middle. So I need to find it by pattern where only the middle number will change. So I need something like this:
document.getElementById("btn:*:uniquenamehere")
I saw ways of doing it using jquery, but I can't use 3rd party libraries. How can I do this with pure javascript?