jquery - Is there a way to get the Spectrum Color Picker to out put HEX and not RGB? -


i using bgrins jquery spectrum color picker in vs 2013 project. color picker's out when reading submitted form rgb in project required store color chosen hex string. there way color picker output hex string?

try this:

var t = $('#colorpickerid').spectrum("get"); console.log(t.tohexstring()); 

Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -