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); 

+ Answer
+ Report
Total Preview: 830

Copyright © 2024. Powered by Intellect Software Ltd