0

Color picker values

How do i get the color or that little box inside the button and change the border radius? do i have ti get the value of the input or somethin https://code.sololearn.com/W5XExdexbNz4/?ref=app

8th Jun 2022, 1:24 AM
Junior
Junior - avatar
3 Answers
+ 1
The button with a little box inside it is the colour picker element. The little box's colour changes to the colour selected from the colour picker dialog. Use 'onchange' attribute rather than 'onmousedown'. This way, the body background colour will be updated using the selected colour. And what was that border-radius thing about?
8th Jun 2022, 3:35 AM
Ipang
+ 1
the button inside the box i want to have a border-radius: 5px;
8th Jun 2022, 3:36 AM
Junior
Junior - avatar
0
I don't know how, or even if it was possible. At best I guess, you can set border-radius for the <input> element itself. Maybe someone knows how, just wait ...
8th Jun 2022, 3:38 AM
Ipang