I have some hex colors in the array.
$ Each (["# FF 20000", "# 000", "# FF 6600", "# 00 E641"], function (i, c) {$ ('& lt; input class = "btns" type = " Button "& gt; ') .css (" background-color ", color). (" Touch ", $ proxy (function new, faucet, color)) .appendTo (" # subDv ");});
I want to pass color mood with hex value. How do i do it Example: When Code> is selected I want to be able to pass the word # FF 20000
["red", "black", "orange", "soft shed"]
Red
. When # FF6600
is selected, I want to be able to pass the word orange
.
you can:
var ma = [[" # "FF 20000", "Red"], ["# 000", "Black"], ["# FF 6600", "Orange"], ["# 00 E641", 'Soft Shade']]; $ .ee (ma, function (a, b) {b [0]; // hex b [1]; // color name});
No comments:
Post a Comment