Hi here is the codes bellow, I\'ve tried many things but I couldnt get value of selected radio button.As you can see I need to get that value for diffrent situations.
You can use document.getElementsByName() or document.getElementsByTagName("input") to get an array of input elements. Loop through those elements to check which is checked.
Here is an example of how to get the value of the checked button from a set of radio buttons with the name "selected":