I have the following code which when I hover over a hyperlink, I like to show the image of it. The problem is that no image comes up.
Here is what it looks like
$(document).ready(function () {
$('a').hover(function (e) {
var href = $(this).attr('href');
alert(href); // shows c:/images/jj.gif for that particular record as I have the hyperlinks for a given column within a grid
$("body").append("<p id='preview'><img src='" + this.href + "' alt='Image preview' /></p>");
});
});