After searching, I’m trying this code which I’m pretty sure was suppose to work:
$("#someLinkID").click(
function () {
var divToRender = "<div>" + "some message" + "</div>";
$(divToRender).css({ top: 0, left: 0, position: 'absolute' });
$(this).append(divToRender);
}
);
What am I missing, that looks very logical…
I finally saw the mistake (that the CSS wasn’t being applied), to ensure that it is applied (though I can’t say why it, originally, wasn’t) I’d recommend:
JS Fiddle demo.