As for a default color in input color

Asked

Viewed 188 times

0

Good morning, I have one <input type='color' /> and it only comes in black color, I want it to come in color white.

1 answer

1

Just set the attribute value of your field:

<input type='color' value='#FFFFFF' />

The value you enter in the attribute will be the color displayed initially.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.