title: How do i get a value from Kendo UI template
body: <p>I have this template:</p>
  
  <pre><code>var template = kendo.template("&lt;div class='relatedItemRow'&gt;"
                              + "&lt;span id='relatedItemName'&gt;Related Item #: Number #&lt;/span&gt;"
                              + "&lt;div  class='relatedItemRowInfo'&gt;&lt;span &gt;#: Name #&lt;/span&gt;"
                              + "&lt;a data-relatedItemID='#: Value #' class='removeRelatedItem'&gt;"
                              + "&lt;img src= '#: Img #'/&lt;/a&gt;&lt;/div&gt;&lt;br class='clear'/&gt;&lt;/div&gt;");
  var data = {
      Name: "" + checkbox.getAttribute('flatName'),
      Number: $('#relatedItemsList').children().length + 1,
      Img: '/Content/images/x_remove.png',
      Value: checkbox.value
  };
  
  var result = template(data);
  $("#relatedItemsList").append(result);
  </code></pre>
  
  <p>I am able to access the data-relatedItemID by using:</p>
  
  <pre><code>$('#relatedItemsList').children().eq(i).children().last().attr('data-relatedItemID')
  </code></pre>
  
  <p>But how do I get to the Number field in data? I want to change that one dynamically.
  I have tried:</p>
  
  <pre><code>$('#relatedItemsList').children().eq(i).children().attr('Number') == 5
  </code></pre>
  
  <p>but it does not work. Any idea how to do that?</p>