enabled Selector

enabled Selector
CSS enabled Selector reference
The CSS enabled UI element states selector ( X:enabled { } ) is used to target and style enabled HTML form elements. Form elements are enabled by default unless they have the HTML "disabled" attribute set on them.
CSS CODE EXAMPLE
<!DOCTYPE html>
<style type="text/css">
input, textarea:enabled {
    background-color: #DEF;
    border:#80BFFF 1px solid;
    padding:5px;
}
</style>
<input type="text" name="firstname">
<br /><br />
<textarea name="comment"></textarea>
<br /><br />
<button type="submit">Submit</button>
 




0 Response to "enabled Selector"

Post a Comment