Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

css check if class as color white

if( $(this).css("background-color").match(/^(?:white|#fff(?:fff)?|rgba?(s*255s*,s*255s*,s*255s*(?:,s*1s*)?))$/i))
    this.style.backgroundColor = "#000";
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #css #check #class #color #white
ADD COMMENT
Topic
Name
9+2 =