Question:Which of the following syntax is correct for fetching the value of an attribute from an element?
A var x=$(selector).attribute(attribute);
B var x=$(selector).getAttr(attribute);
C var x=$(selector).attr(attribute);
D var x=$(selector).attrib(attribute);
+ AnswerC
+ Report