I have a with the rel=\"example.jpg\". I want the button to load the image in my #area DIV, just after
rel=\"example.jpg\"
#area
HTML
Click Me
jQuery
$("button").click(function () { var imgUrl = $(this).data('rel'); $("#area").html(""); });