I am trying to get the index of a radio button, so that I can copy it to another radio button in a different language.
However every example online of how to get a index of a selected radio button requires this name attribute. All we have in forms is classes to work with, so how do I get the name attribute?
How would you go about setting this "radioFieldName" in Forms in addition to the class?
var radioButtons = $(".myClassRadioClass input:radio[name='radioFieldName']"); var selectedIndex = radioButtons.index(radioButtons.find(':checked'));