Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

checkbox checked color change css

//HTML example
<label for="checkbox-one" >
  <input id="checkbox-one" type="checkbox" role="checkbox" /><p>Text</p>
</label>


//CSS solution
input[type="checkbox"]#checkbox-one:checked + p {
       color: blue; 
}
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #checkbox #checked #color #change #css
ADD COMMENT
Topic
Name
2+6 =