I am trying to get the href value passed to a variable when the user clicks on the link from a particular class. This is what I have right now.
$(document).on('click',"a.show-notes",function{
var $url = $(this).attr("href");
)};
This is not working for me though, and no value is being passed to the variable. I have also tried something like this, with no luck...
$("a.show-notes").on('click',function(){
var $url = $(this).attr("href");
)};
I imagine that there is something obvious here that I am missing, but I've been starring at it for so long that my mind is fried.