how to get the dom position of an element in jquery code example
Example 1: jquery get relative position of element
//relative Position
let rel = $('.someClass').position();
//absolute Position
let abs = $('.someClass').offset();
Example 2: jquery get left position
var position = p.position();
var left = position.left; '<-- left value for p