I have a form with two radio groups. I would need, for one of them, that one of the options was selected by default. Of course I entered 'checked' but it doesn’t work.
<div is="dmx-radio-group" id="group2" class="radio-group" align="center">
<font color="#000000" size="+1"><b>SI</b></font>
<input type="radio" id="radio3" name="radios2" value="1" checked>
<font color="#000000" size="+1"><b>NO</b></font>
<input type="radio" id="radio4" name="radios2" value="0">
</div>
What could be the cause of the problem?
To solve temporarily, I added:
<script>
window.onload = function() {
document.getElementById("radio3").checked = true;
};
</script>