hyTags
HomeHome DocumentationDocumentation

input-is-disabled

Checks if an input or textarea element is disabled.
Parameter
Type
Description
return
bool
True if the element is disabled, false otherwise.
Test Case:Check if input is disabled
    <input type="text" disabled>
    
    <input-is-disabled>
    <assert-true>
    
    👆 Try to change something!
  • Test Case:Check if input is not disabled
      <input type="text">
      
      <input-is-disabled>
      <assert-false>
      
      👆 Try to change something!
    • Test succeeded Test failed