Hello. There are radio buttons of the form:

<input type="radio" name="question_1" value="1"> А) Белый<br> 

I get access to the group through

 var group = document.getElementsByName('question_1'); 

and then I need to take the text after the input.
I take any button through group [0], but how to get the text after it?

    2 answers 2

    Your text can be fired into tags (or <label>, <span>, etc.) and refer to them already. You can access it nextSibling

    • @zloctb, I did it even without wrapping the tags. But thanks for the link. - Ray
    • one
      If you break the text in <label> it gives you the opportunity to select the checkbox by clicking on the text - zloctb

    As always. You find the solution as soon as you ask a question.
    Maybe someone will need. Ripped with a firebug:

     group[0].nextSibling.wholeText;