I have this button and I want to add a href to it, but since the page is made with an "Elementor" wordpress builder but I can not change it directly in the code, so I have tried with functions like this one that I found in other forums but It does not work for me.
var a = document.getElementById('yourlinkId');
a.href = "somelink url"
Any way to do it? Thanks