.attr() Get the value of an attribute for the first element in the set of matched elements. .prop() Get the value of a property for the first element in the…
difference between prop() and attr() in jQuery and when to use attribute
1 Article
1