Learn To Program
Increase Your Knowlegde and Build Your Skill!
Pages
(Move to ...)
Home
Me
▼
Saturday, February 5, 2011
Counting Element
each function in jQuery used for count and iterate the whole object. Like this one:
(function($){
$.fn.howMany = function(){
var a = 0;
this.each(function(){
a = a + 1;
});
return a;
};
})(jQuery);
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment