What is the difference between prop() and attr() in jQuery?
The prop()
method is used to change properties for HTML tag as per the DOM tree, whereas attr()
changes attributes for HTML tags.
Suggest An Answer
No suggestions Available!
The prop()
method is used to change properties for HTML tag as per the DOM tree, whereas attr()
changes attributes for HTML tags.