ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

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

user-image
تم إضافة السؤال من قبل مستخدم محذوف‎
تاريخ النشر: 2014/09/21
Mahmoud Elmahdi
من قبل 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
من قبل 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
من قبل Muhammad Waqas , Dot Net and MVC Developer , Osys Technologies

You better use "Jquery color picker plugin"

المزيد من الأسئلة المماثلة

هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟