title: Loop via a each but function unknown
body: <p>I get json value and i loop on rentFeatureOption. This part work.</p>
  
  <pre><code>{
      "bailId": 2,
      "fromDate": "2016-03-11",
      "toDate": null,
      "lodgerId": 1,
      "supportTwoPerson": false,
      "lodgerPayforTwo": false,    
      "roomId": 1,
      "appartmentId": 1,
      "price": 500.0,
      "paymentPeriod": "WEEK",
      "address": "460 Ch. Chambly, Longueuil, 1",
      "rentFeatureOption": [{
          "rentFeatureOptionId": 1,
          "featureOptionId": 2,
          "price": 5.0
      }]
  }
  </code></pre>
  
  <p>I need to loop on a html table </p>
  
  <pre><code>&lt;tbody&gt;
      &lt;tr data-index="0" data-rent-feature-option-id=""&gt;
          &lt;td style="" data-feature-option-id="1"&gt;Air climatisé
              &lt;input type="hidden" name="rentFeatureOption[0].rentFeatureOptionId" value=""&gt;
              &lt;input type="hidden" name="rentFeatureOption[0].featureOptionId" value="1"&gt;
          &lt;/td&gt;
          &lt;td style=""&gt;
              &lt;input type="text" name="rentFeatureOption[0].price" value=""&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr data-index="1" data-rent-feature-option-id=""&gt;
          &lt;td style="" data-feature-option-id="2"&gt;Internet
              &lt;input type="hidden" name="rentFeatureOption[1].rentFeatureOptionId" value=""&gt;
              &lt;input type="hidden" name="rentFeatureOption[1].featureOptionId" value="2"&gt;
          &lt;/td&gt;
          &lt;td style=""&gt;
              &lt;input type="text" name="rentFeatureOption[1].price" value=""&gt;                
          &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/tbody&gt;
  </code></pre>
  
  <pre class="lang-js prettyprint-override"><code>for (var i = 0; i &lt; data.rentFeatureOption.length; i++) {
      $('#lodgerRentOptionTableResult &gt; tbody  &gt; tr').each(function() {            
          if ($(this).find('td')[0].data("feature-option-id") == data.rentFeatureOption[i].featureOptionId) { 
          }
      });                        
  }
  </code></pre>
  
  <p>On the condition I get this error</p>
  
  <blockquote>
    <p>Uncaught TypeError: $(...).find(...)[0].data is not a function</p>
  </blockquote>