Which of the following is a jQuery method to check if an element has a specific attribute?
A. hasAttr()
B. checkAttr()
C. hasAttribute()
D. has()
Answer:C
Which of the following is a jQuery method to check if an element has a specific attribute?
A. hasAttr() B. checkAttr() C. hasAttribute() D. has()