Skip to content

From jQuery Miscellaneous

alanhogan edited this page Jul 29, 2011 · 2 revisions

‹ Part of the “Nokogiri for jQuery Users” series

.each()

Iterate over a jQuery object, executing a function for each matched element.

The Nokogiri equivalent is simply .each on the NodeSet. more

.size() and .length

Return the number of elements in the jQuery object.

Nokogiri supports both .size and .length.