title: how to call Handsontable's method
body: <p>I'm new in Handsontable.</p>
  
  <p>I want to call Handsontable's method such as getData or selectCell. I have already tried out what the <a href="http://docs.handsontable.com/0.15.0-beta6/Core.html#addHook" rel="nofollow">documentation</a> is saying but it doesn't work.</p>
  
  <p>Below is my JavaScript (jQuery) code:</p>
  
  <pre><code>$(document).ready(function () {
  var test;
  $.ajax({
      type: 'POST',
      url: 'accounting/ajax/ajaxLoadForViewAccount.php',
      datatype: 'script',
      data: {
          tbname:tbname
      },
      success: function (response) {
  
          test = JSON.parse(response);
  
          var data = new Array();
          var headerName = new Array();
          var i=0;
  
          for(i=0;i&lt;test.room_num.length;i++){
              var obj = {room_num:test.room_num[i],rental_fee:test.rental_fee[i]};
              data.push(obj);
              headerName[i] = test.room_num[i];
          }
  
          var container = document.getElementById('example');
          var hot;
  
          hot = new Handsontable(container, {
              data: data,
              colWidths: [80, 80],
              rowHeaders: headerName,
              colHeaders: ['room_num','rental_fee']
          });
      },
      error: function () {
          alert('error');
      }
  });
  
  
  $('#submit').click(function () {
      $('#example').append("&lt;p&gt;Testtttttttttttttttttttttttttttttttttttttt&lt;/p&gt;");
  
      $('#example').handsontable('setDataAtCell',1,1,'10000');
      alert('test');
      });
  }); 
  </code></pre>
  
  <p>According to my code, after I click the submit button the <code>example</code> div is appended with "Testtttttttttttttttttttt" that means <code>$('example')</code> selector should work fine. In addition the <code>'test'</code> alert also appears. However the method <code>setDataAtCell</code> doesn't work.</p>