I want something like a counter for each line in a text box. This is used when loading a huge number of web banners, so I need a simple counter for the number of users. Right now, the counter only works when the user clicks a link with a special banner.
This is my code as of now:
var i = 0; $('.size').click(function(){ $('#total-number').text(i++); return false; });
jquery counter line-breaks
Simon nielsen
source share