Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('table > tbody tr').each(function() {
- var counter = 0;
- var ccc;
- $('td.form a:nth-child(1), td.form a:nth-child(2), td.form a:nth-child(3),td.form a:nth-child(4)').each(function() {
- if(( $(this).hasClass("form-win") ) || ( $(this).hasClass("form-loss") )) {
- $(this).css('background','red');
- counter++;
- ccc = $(this).closest('tr.team_rank').find('td.team a').text();
- $('results').append(ccc);
- }
- else {
- $(this).css('background','blue');
- }
- });
- });
Add Comment
Please, Sign In to add comment