title: How can I select all elements after a particular element with JavaScript?
body: <p>I need to acces to all elements after certain element to change some attributes. I know there is nextAll() but I can't use jquery. </p>
  
  <p><img src="https://i.stack.imgur.com/X1Yx8.png" alt="i need to erase first answer and answer 2 to be updated to 1"></p>
  
  <p>Specifically I need to change the label text and the name attribute from the input.</p>
  
  <pre><code>&lt;div class="row respuesta"&gt;
    &lt;div class="form-group col-md-12"&gt;
      &lt;label&gt;Respuesta 1:&lt;/label&gt;
      &lt;div class="input-group"&gt;
        &lt;input class="form-control" name="respuesta1" onblur="comprobarInputVacio(event)" type="text"/&gt;
        &lt;span class="input-group-btn"&gt;&lt;/span&gt;
        &lt;span class="input-group-btn"&gt;&lt;/span&gt;
        &lt;span class="input-group-btn"&gt;&lt;/span&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="row respuesta"&gt;
    &lt;div class="form-group col-md-12"&gt;
      &lt;label&gt;Respuesta 2:&lt;/label&gt;
      &lt;div class="input-group"&gt;
        &lt;input class="form-control" name="respuesta2" onblur="comprobarInputVacio(event)" type="text"/&gt;
        &lt;span class="input-group-btn"&gt;&lt;/span&gt;
        &lt;span class="input-group-btn"&gt;&lt;/span&gt;
        &lt;span class="input-group-btn"&gt;&lt;/span&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="row respuesta"&gt;
    &lt;div class="form-group col-md-12"&gt;
      &lt;label&gt;Respuesta 3:&lt;/label&gt;
      &lt;div class="input-group"&gt;
        &lt;input class="form-control" name="respuesta3" onblur="comprobarInputVacio(event)" type="text"/&gt;
        &lt;span class="input-group-btn"&gt;&lt;/span&gt;
        &lt;span class="input-group-btn"&gt;&lt;/span&gt;
        &lt;span class="input-group-btn"&gt;&lt;/span&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Thanks for the help.</p>