Response title
This is preview!
The.prop()
method is a convenient way to set the value of properties—especially when setting multiple properties, using values returned by a function, or setting values on multiple elements at once. It should be used when settingselectedIndex
,tagName
,nodeName
,nodeType
,ownerDocument
,defaultChecked
, ordefaultSelected
. Since jQuery 1.6, these properties can no longer be set with the.attr()
method. They do not have corresponding attributes and are only properties.
© 2013 jQuery Foundation
Sponsored by and others.