title: How to remove first and last values in a FOR EACH loop?
body: <p>I am appending values to input boxes from a Google Maps application. Each marker has a "routeTitle" attribute. I am able to get the "first point", "last point" and "all points" and appending them to input boxes. </p>
  
  <p>However, how can I input all values except the first and last into an input box? In other words, all points between first and last.</p>
  
  <pre><code>for( var i = 0; i &lt; markers.length; i++ ){
      $("#startpoint").val(markers[0].routeTitle); 
      $("#endpoint").val(markers[markers.length - 1].routeTitle); 
      $("#allpoints").val(markers[i].routeTitle); 
      $("#checkpoints").val( not sure); 
     };
  </code></pre>