Get the value of an attribute for the first element in the set of matched elements.An attribute value may only be a string.The attributes contains basic information along with some additional information about an HTML element and come in name=”value” pairs. The attributes gets changed for that html tag using .attr.For more visit the link mentioned.
Topics