I need assistance with the code snippet found at http://jsfiddle.net/VmXU9/34/.
$(".click").click(function() {
var s = $(this).offset();
left = s.left + $(this).width();
$("#THREE").css({
'opacity': 0.80
});
$("#THREE").css(s);
$("#THREE").css({
left: left
});
});
My goal is to adjust the top
and left
positions of the yellow <div>
, such as setting them to left: 10px, top: -20px
. Additionally, I want it to hide when clicking outside of the element. How should I go about accomplishing this?