1

how can I set radio button checked by default in Weebly using html and css? I'am trying to do something like this:

.wsite-form-radio-container input {
checked: "checked";
}

2 Answers2

1

I don't know what the options are in Weebly, but for the default check you could use only HTML.

<input type="radio" checked>Blue<br>
<input type="radio">Red

Notice that I added checked to the blue one. This makes it checked by default.

To style a checked radio button you could use CSS.

input:checked {
    ....
}
Matthijs van Hest
  • 769
  • 1
  • 6
  • 12
0

Just add 'checked' to the input tag like this:

<input type="radio" checked>

RiesvGeffen
  • 1,539
  • 2
  • 11
  • 29