Question:Which of the following syntax is correct for setting attribute value to an element?
A $(selector).attr(element,value);
B $(selector).attr(attribute,value);
C $(selector).attribute(element,value);
D $(selector).attr(value);
+ AnswerB
+ Report