Hi
I have the UI component Radio and one button
I have some options on the radio.
I need to save as local variable the option selected on the radio and run this when i click on the button.
I have this JS in the button.
var a = $('[name=radio_list]').val();
localStorage.setItem('_value', a);
All time only have the first option. If I no have item selected i have the first option too.
What is the correct function ?
Thanks