Anonymous Anonymous - 5 days ago
125 0

No description

Javascript

JS123123

$(".name-btn").click(function(){
		var position = $(this).position();
		var posX = position.left
		var posY = position.top + 47
		var width = $(this).offsetWidth
		$('#user-dropdown').css({
			left: posX + "px",
			top: posY + "px",
			width: width
		});
		console.log(position)
	});