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