Which of the following is a jQuery method to add a CSS class to an element?
A. addAttribute()
B. addClass()
C. setAttribute()
D. setClass()
Answer:B
Which of the following is a jQuery method to add a CSS class to an element?
A. addAttribute() B. addClass() C. setAttribute() D. setClass()