The idea is to go through all input fields and when $(this) has the radio type, check if it’s selected, if it is save its value.
I know there are other ways to get the value of the selected radio button but Im already going through all inputs and doing something similar.
I’ve tried to check the attribute selected, $(this).attr('selected') without any luck… and I have no idea of how to do it.
Thanks
For radio button, you should use
checked.