Skip to content

Instantly share code, notes, and snippets.

@victorzen
Last active May 8, 2017 18:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save victorzen/3fb2b220a6dcfb10ca77d9eb08bfe8fb to your computer and use it in GitHub Desktop.
Save victorzen/3fb2b220a6dcfb10ca77d9eb08bfe8fb to your computer and use it in GitHub Desktop.
Text color in dropdown menu matches text color in placeholders and turns black when selection is made.

Javascript:

<script>
   lp.jQuery(document).ready(function($) {  
      $("select").addClass("notselected");       
      $("select").live('change', function() {
         $("select").removeClass("notselected")
      });
   });
</script>

CSS:

<style>
   .notselected {
      color: #a9a9a9; 
   }
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment