-
How to Fix Javascript Code for Getting Href Content of a Link
about 6 years ago
-
about 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)