CRM.$(function($) { cj('#selector tr:even').addClass('odd-row '); cj('#selector tr:odd ').addClass('even-row'); });