title: Changing a label's text by the FOR attribute
body: <p>I would like to set the text of the label. Unfortunately the number 36 will change on each page refresh.</p>
  
  <pre><code>&lt;label for="rn_TextInput_36_Incident.CustomFields.c.other_action_taken" id="rn_TextInput_36_Label" class="rn_Label"&gt;TEXT HERE&lt;/label&gt;
  &lt;input type="text" id="rn_TextInput_36_Incident.CustomFields.c.other_action_taken" name="Incident.CustomFields.c.other_action_taken" class="rn_Text" maxlength="50" required=""&gt;
  </code></pre>
  
  <p>I can get the ID by using:</p>
  
  <pre><code>var id = document.getElementsByName('Incident.CustomFields.c.other_action_taken')[0].getAttribute('id');
  </code></pre>
  
  <p>How can I then use this to set the label text i.e. target the label by the value of the <code>for</code> attribute in JavaScript - not jQuery</p>
  
  <p>So as mentioned, the number will change each time so I can't use the ID value of <code>rn_TextInput_36_Label</code> that the label currently has</p>