title: Set value to the table td in javascript
body: <p>I am getting the id of dynamically generated <code>td</code>. after getting the id, I am binding some text to that but its not working</p>
  
  <pre><code>$(document).on('click','.add-subject-button',function(){     
     var id=$(this).parent('td').attr('id');
     id.text("dummy text");
  }
  </code></pre>
  
  <p>Error I am getting is  </p>
  
  <blockquote>
    <p><code>id.text is not a function</code></p>
  </blockquote>