lösa problemet på css-nivå genom att utforma din knapp med den här väljaren div.book-day.disable button ?

7730

disabled This Boolean attribute indicates that the user cannot interact with the control. If this attribute is not specified, the control inherits its setting from the containing element, for example

; if there is no containing element with the disabled attribute set, then the control is enabled.

The disabled attribute can be set to keep a user from selecting the option until some other condition has been met (like selecting a checkbox, etc.). Then, a JavaScript is required to remove the disabled value, and make the option selectable. 2008-09-03 2012-08-23 Use textarea instead of div and add two buttons and enable/disable. Handle enable and disable using javascript. eg.