Hi guys,
Here's the codes
I want only 4 clients at the time.Code:var clients[]; for(var i = 0; i < clients.length; i++) { clients.someFunction(); }
Thanks
| SitePoint Sponsor |
Hi guys,
Here's the codes
I want only 4 clients at the time.Code:var clients[]; for(var i = 0; i < clients.length; i++) { clients.someFunction(); }
Thanks


Hi,
Try add break; instruction:
Code:for(var i = 0; i < clients.length; i++) { clients.someFunction(); if(i == 3) break; }
Free: Web Programming Courses HTML, CSS, Flash
Web Programming: AJAX Course and PHP-MySQL Course video Lessons
Good JavaScript and jQuery course for beginners
Hi,
Thanks for reply. I've got it done with the codes below:
Code:var clients[]; for(var i = 0; i < clients.length; i += 4) { clients[i].someFunction(); }




Sorry,
I create a live javascript session for group of my clients discussion. I want to limit group participation to only 4 persons. And that what I can think of at the moment.
Bookmarks