I will take string from the variable and it will only accept the colour codes of any type like rgba, hashcode and rgb etc. so how can i create that variable that only accept this type of inputs?
i want this solution in javascript.
I will take string from the variable and it will only accept the colour codes of any type like rgba, hashcode and rgb etc. so how can i create that variable that only accept this type of inputs?
i want this solution in javascript.
2
Answers
You can use CSS support API
You can use this API to validate the input
Yes , i can do that , here is solution for that