Open
Description
Tried to use these two Sizzle methods and didn't work.
Sometimes you don't want to give an absolute path to the element. For example, if you have a list and you want to iterate through all the items and retrieve one value from a specific div inside of each one.
The code i'm using:
$.getPage(function (page) {
// Iterate over each 'h2 a' elements.
$('.ti').each(function (index, element, done) {
this.children('a', function () {
// this should now be te 'a' inside '.ti'
done();
});
},
// This method is called after all the items have been iterated over...
function () {
$.close();
});
});
Metadata
Metadata
Assignees
Labels
No labels