title: Knockoutjs template foreach, special first item
body: <p>So i have been busting my brain figuring this out. I have a foreach, spitting out templates, and i want the first element to have a special attribute. So far solutions i have found havent worked.</p>
  
  <p>This is the foreach:</p>
  
  <pre><code>&lt;h3 class="question"&gt;Geografi&lt;/h3&gt;   
          &lt;p class="answer" data-bind="template: { name: 'geographyTmpl', foreach: geographyList,  templateOptions: { selections: selectedGeographies } }"&gt;&lt;/p&gt;
  </code></pre>
  
  <p>This is the template:</p>
  
  <pre><code>&lt;script id="geographyTmpl" type="text/html"&gt;
  &lt;input class="geoCheckList" validate="required:true, minlength:2" name="geoCheckList[]" type="checkbox" data-bind='value: $data, attr: { id: "Geo"+$index()},checked: $root.selectedGeographies' /&gt;
  &lt;label data-bind="text: $data, attr: { 'for': 'Geo'+$index()}"&gt;&lt;/label&gt;
  </code></pre>
  
  <p></p>
  
  <p>And i want to add: "validate="required:true, minlength:2" to the first element. </p>
  
  <p>What do i need to do?</p>
  
  <p>If it helps, its for jQuery validation.</p>