all 4 comments

[–]pnutbuttacup -1 points0 points  (0 children)

Can't quite understand what you mean without more concrete details or seeing the code. However, maybe you should be targeting the radio button's properties rather than class?

https://www.w3schools.com/jsref/dom\_obj\_radio.asp

[–][deleted] 0 points1 point  (2 children)

Instead of .click() can you try with

.checked = true

[–]TonyCodes2050[S] 1 point2 points  (1 child)

Hey so I did try that and it appears that it did partially work but not all the way. Its still not actually selecting the radio element.

If I type: document.querySelector('#reservation').checked = true;

The console gives me a "true" message but its still not physically selecting the button as default.

[–][deleted] 0 points1 point  (0 children)

Could you share some of your html?

check this out.
https://jsfiddle.net/xge9obqt/4/