I've got xslt file which consists of many tables. 
I set id to each table. How can I set grid on id?
<table class="grid" id="ID0EEC">
      <tbody><tr>
        <th>Numb</th>
        <th>Time</th>
        <th>Type</th> 
      </tr>
      <tr>
        <th>47217283640322</th>
        <th>10.01.2014 15:25:17</th>
        <th>ATM</th> 
      </tr>
      <tr>
        <th>46961091840322</th>
        <th>12.01.2014 09:07:47</th>
        <th>Kasino</th> 
      </tr>
      <tr>
        <th>46519990240322</th>
        <th>25.01.2014 22:47:00</th>
        <th>Cash</th> 
      </tr>
    </tbody></table>
<table class="grid" id="ID0EJG">
      <tbody><tr>
        <th>Numb</th>
        <th>Time</th>
        <th>Type</th> 
      </tr>
      <tr>
        <th>47217283640322</th>
        <th>10.01.2014 15:25:17</th>
        <th>ATM</th> 
      </tr>
      <tr>
        <th>46961091840322</th>
        <th>12.01.2014 09:07:47</th>
        <th>Kasino</th> 
      </tr>
      <tr>
        <th>46519990240322</th>
        <th>25.01.2014 22:47:00</th>
        <th>Cash</th> 
      </tr>
    </tbody></table>
I would like to do smth like thin in JS
  var gridArray = $("#grid");
        for (var i = 0; i < gridArray.length; i++) {
            var tmp = gridArray[i];
            var numb = tmp.getAttribute('id');
            $("#" + numb).kendoGrid({});
        } 
What is wrong?

