-
How to Fix Javascript Code for Getting Href Content of a Link
over 6 years ago
-
over 6 years ago
Hey, please try this:
$('.sessionBtn').on('click', function (e) { e.preventDefault(); var url_string = $(this).attr("href"); document.getElementById("demo").innerHTML = "document id: "+url_string; });
-
1 Answer(s)