get element position from left jquery code example
Example 1: jquery get left position
var position = p.position();
var left = position.left; '<-- left value for p
Example 2: get left position based on container jquery
const childPos = obj.offset();
const parentPos = obj.parent().offset();
const childOffset = {
top: childPos.top - parentPos.top,
left: childPos.left - parentPos.left
}