Advertisement
Guest User

Untitled

a guest
Jul 24th, 2014
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. $(".someClass").each(function() {
  2. var h = $(this).height(); //height of current iterated elem
  3. });
  4.  
  5. $(".someClass:eq(3)").height(); //get elem at position 3
  6.  
  7. var $li = $('li').eq(3); // $li now contains the third li element
  8.  
  9. $('li').each(function() {
  10. console.log($(this).height());
  11. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement