Hosting Solutions
mobile_logo Table of Contents
seal_frontseal_back

enabled

The enabled UI element states pseudo-class selector will target enabled HTML form elements. Form elements are enabled by default unless they have the HTML "disabled" attribute set on them.
Syntax Logicelement:enabled { property_list }

CSS Code Example

<style> input:enabled { background-color: #DEF; border:#80BFFF 1px solid; } </style> <p><input type="text" name="firstname"></p> <p><input type="text" name="lastname" disabled></p> <p><input type="text" name="email"></p>

CSS

Selectors

universaltypecompoundclassidnotattributedescendantchildadjacent siblinggeneral siblingfirst childlast childonly childfirst of typelast of typeonly of typenth childnth last childnth of typenth last of typeemptyrootfirst linefirst letterbeforeafterlinkvisitedhoveractivefocustargetenableddisabledcheckedlang