Function of operating attribute in jqyert


The function prop() attr() for operating attributes in jqyert
1. Prop() is used to obtain the property value or assignment of DOM object. It can only get the standard attribute, but not some custom attribute. The basic syntax prop (property name, [attribute value]) attribute value can be written but not written
2attr() can get the standard attribute or the custom attribute

The data function in jQuery is used to store data on the specified DOM object and retrieve data
The basic syntax is data (key [, value]). If only key means value, if there is key value, then value means assignment. Only when the value is assigned first can the value be obtained.