Which of the following is a jQuery method to get the value of a data attribute of an element?
A. val()
B. text()
C. html()
D. data()
Answer:D
Which of the following is a jQuery method to get the value of a data attribute of an element?
A. val() B. text() C. html() D. data()