Advanced web-based jQuery operations DOM elements & amp; MySQL record Operations & amp; PHP Object-Oriented Learning notes, advanced web-based jquerydom. Advanced web jQuery operation DOM element MySQL record operation PHP Object-Oriented Learning notes, advanced web jquerydomhi keep learning quantity and quality 1. jQuery operation DOM element ---- use attr () method control: Advanced web jQuery operations DOM elements & MySQL record Operations & PHP Object-Oriented Learning notes, advanced web jquerydom
Hi
Maintain the learning quantity and quality
1. jQuery operates on DOM elements
---- Use the attr () method to control attributes of elements
attr()
The method is used to set or return the attributes of an element.Attr (attribute name)
The format is to get the value of the element property name,Attr (attribute name, attribute value)
The format is to set the value of the element property name.
Control is to get and set
Set element attributes in the attr () method
Click I will change
The changed address is: