You selector is incorrect, remove space to convert it to element with class selector.
$("a.SiteDown").on('click', function(e){
//....
});
As of now its descendant selector.
As you are approach when manipulation selector, use Event Delegation using on()
.
$(document).on('click', "a.SiteDown", function(e){
//....
});
In place of document
you should use closest static container.
3
solved jQuery – on click not working for element filtered by dynamic CSS