Hello, i tried show two radios, and one of them load selected. I can with “cheched” attribute, but when change radio options, the attribute dont change, and when i tried get option selected, JQuery return always de default becouse de CSS only change label class.
Can i solve this? Thanks!
1) To show radio checked when the page load you are right using the attribute checked. Like this code below where the second radio loads checked:
<input type="radio" name="optionsRadios" id="optionsRadios1" value="option1">
Option one is this and that—be sure to include why it's great
<input type="radio" name="optionsRadios" id="optionsRadios2" value="option2" checked>
Option two can be something else and selecting it will deselect option one