I am trying to position a popup div below:
<div style="display:none;height:200px;width:200px;border:3px solid green;" id="popup">Hi</div>
based on the clicking of another div.
I am running this on document .ready
$('div#d').bind('click', function (event) {
var offset = $(this).offset();
$('#popup').css('left',offset.left);
$('#popup').css('top',offset.top);
$('#popup').css('display','inline');
});
but the above will not even display the div