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.
BY Best Interview Question ON 26 Jan 2019