Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var sum = 0;
- function showWidth(w) {
- $("div").text("The width is " + w + "px.");
- }
- $(".lol").each( function (id)
- {
- sum += $(id).width();
- $("div").text("each loop");
- }
- );
- $("div").text("after each loop");
- showWidth(sum);
Add Comment
Please, Sign In to add comment