Keeping code neat is essential. In CSS, elements can be grouped like this:
.element1,
.element2,
.element3,
.element4,
.element5,
.element6 {
font-weight:bold;
}
I am curious if there is a similar method in jQuery or if each element needs to be set individually.
$('.element1').css('font-weight', 'bold');
$('.element2').css('font-weight', 'bold');
$('.element3').css('font-weight', 'bold');
etc
An ideal scenario would be something like
$('.element1', '.element2', etc).css('font-weight', 'bold);