Getting the left property of an LI element in jQuery? -


I have a dynamic list of LI inside of UL.

I am trying to be competent in any way to 'track' the last list of ul, in which there is a final category.

I thought that if I could test against a number of numbers for the left property of the original, I would say, -500, then I could have done what I had to do.

The problem is that I can not get that property.

Is it possible or override parents (in this case UL)?

If you want a left position relative to the page, then you do so It can:

  var left = $ ('ul li.Last') offset (). Left; According to  

or their parents, do this:

  var left = $ ('ul li.Last'). Event (). Left;      

Example:


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -