Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

How to get the color value of HTML5 color picker using jquery?

user-image
Question ajoutée par Utilisateur supprimé
Date de publication: 2014/09/21
Mahmoud Elmahdi
par Mahmoud Elmahdi , UX/UI Designer, Web Developer , ikantam.com

Here's a Demo Link with an element that return the property of css color, and input type color that return the value.Hope that helps.Mahmoud

Ibrahim Ahmed
par Ibrahim Ahmed , CEO/CTO/Fullstack Developer , Stack Bytes

I assume your're using something like this <input type="color" id="colorInput" >

 

Like any input you could use something like: var theColor = $("#colorInput").val();

Muhammad Waqas
par Muhammad Waqas , Dot Net and MVC Developer , Osys Technologies

You better use "Jquery color picker plugin"

More Questions Like This

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?