how to get position of element with 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