Using jquery, set variable to the object with a certain css property

firemaster2k

New Member
I have a bunch of LIs that get moved around the page. I want to be able to set a variable to whatever LI has a css property "left: 0px" (there will only be one).I can't seem to figure out how to narrow down a list this way, every method I find just wants to add that property.So to put it in a more verbose way:\[code\]var my_var = $('ul#slider li') with the property "left: 0px"\[/code\]and it should return something like: \[code\]<li><img src="http://stackoverflow.com/questions/9355755/image1.jpg"></li>\[/code\]Thanks!
 
Top