Hi All!
Please, I'm looking for a validation able to validate a CSS color code (e.g: #ffffff).
Conditions (you may know) are:
Begin => #;
strlen => 7 char with include #;
[a-fA-F0-9] in any combination or order;
Thanks in advance!
Home / DeveloperSection / Forums / Validate a hexadecimal color code
Hi All!
Please, I'm looking for a validation able to validate a CSS color code (e.g: #ffffff).
Conditions (you may know) are:
Begin => #;
strlen => 7 char with include #;
[a-fA-F0-9] in any combination or order;
Thanks in advance!
AVADHESH PATEL
09-Mar-2013Hi Pravesh!
You could try following line of code
Note:
"jquery-1.7.1.min.js" provided by MVC application
"jquery.maskedinput.js" you can download from following link
https://raw.github.com/digitalBush/jquery.maskedinput/1.3.1/dist/jquery.maskedinput.min.js