The prop() method receives property values explicitly, whereas the attr() method retrieves attributes. selectedIndex, tagName, nodeName, nodeType, ownerDocument, defaultChecked, and defaultSelected, for example, should be retrieved and set with the method.