$( "td").click( function(event) { $("#divId").css( {position:"absolute", top:event.pageY, left: event.pageX}); });