Show additional details:
The open property sets or returns whether additional details/information should be visible (open) to the user, or not.
This property reflects the HTML open attribute.
When set to true, the details will be visible (open) to the user.
The open property is currently only supported in Opera, Chrome and Safari 6.
Return the open property:
Set the open property:
Value | Description |
---|---|
true|false |
Specifies whether additional details should be visible (open) to the
user, or not
|
Return Value: | A Boolean, returns true if the details are visible, otherwise it returns false |
---|
Find out if additional details are visible (open) to the user, or not:
The result of x could be:
Toggle between opening and closing the additional details: