I changed from .bind to .on(), you could also use .click(). I would suggest having the inline CSS on the CSS file, like in the demo I posted. I also removed div
because the link is not a div. Anyway, if you have a ID which is unique you don't need the div
or in this case a
before.
This is what i changed to make it work:
$('#DetailsLink').on('click', function (event) {
The whole code:
$("document").ready(function () {
$('#DetailsLink').on('click', function (event) {
$('#tradeDetailsSelector').css('left', event.pageX);
$('#tradeDetailsSelector').css('top', event.pageY + 10);
$('#tradeDetailsSelector').css('display', 'inline');
$("#tradeDetailsSelector").css("position", "absolute");
});
})