I would like to return an element with a given left position.
lets say i have the following:
<ul class="first" style="width:840px;left:-60px;"></ul>
<ul class="first" style="width:840px;left:0px;"></ul>
<ul class="first" style="width:840px;left:780px;"></ul>
I want to return the UL that is behind left: 240px;
var left = $('ul').filter(function() {
return $(this).position().left == 240;
});
console.log(left);
I tried the above but it returns nothing!
Then you will not going far if there is an XML syntax conflict such ‘&&’…you should find a solution