I'm sure there is a simple explanation but oddly enough I am unable to find it anywhere, so I am here!
I am trying to get the offset().top of only the first element returned in the Jquery object. I am convinced the following code is correct but I keep getting this error:
TypeError: $(...)[0].offset is not a function
var x = $('.class')[0].offset().top;
What am I missing? Thank you in advance!