Guest User

Untitled

a guest
Oct 22nd, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. var sum = 0;
  2.  
  3. function showWidth(w) {
  4. $("div").text("The width is " + w + "px.");
  5. }
  6.  
  7. $(".lol").each( function (id)
  8. {
  9. sum += $(id).width();
  10. $("div").text("each loop");
  11. }
  12. );
  13. $("div").text("after each loop");
  14. showWidth(sum);
Add Comment
Please, Sign In to add comment