As per a default color in the input color

0

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

    
asked by anonymous 04.01.2018 / 06:26

1 answer

1

Just set the value attribute of your field:

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

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

    
04.01.2018 / 10:03