I'm pretty young and new to here so please bear with me. I am making a site and I am trying to create html links output in javascript. I am currently trying this method but it is not working? I am trying to change the 'mything' to show this text and add a link.
The code in javascript where I try to add a button is
document.getElementById('mything').innerHTML = place.name+' '+' <button id="edit" type = "button" class = "btn btn-link">(edit)</button>';
The bit for button is
$('#mything').on('click', function() {
$('#stuff2').hide();
})
I hope I have put this in right? Thankyou