Loading…

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 avaliable!

Latest post from JQuery interview questions

Ask Question