How to get radio button checked state in js?

I’ve created radio buttons as in instructions here:
Forms - AUI Documentation (atlassian.com)
It looks ok, behaves also correct but i don’t know how to get in java script which radio button is actually selected.
There is checked attribute set for first radio button, but it doesn’t change when I click other radio button.

Aby hint how to do this?

Can you please share your HTML + JS snippets that do not work for you?

I was just preparing a part o my html and js and decided that I should check it one more time before putting here. Simplified version of the html and js works. I’m still not sure why, but I’ll base on it and ivestigate further.
Thanks for quick reply and sorry for bothering.

1 Like