jQuery logo

If you want to apply the same action for multiple selectors in jQuery, you should write down their identificators separated by comma. It can be as simple ID of elements, their classes or something more difficult.

For example, I used to apply the same CSS styles for tags <th> and <td> in tables with 'summary' attribute using jQuery. I did it this way:

$('table[summary="Likert scale question"] td:first-child, 
    table[summary=" Likert scale question"] th:first-child').css({

        'font-weight' : 'normal'

});