title: Couldn't pass value to textbox for more than one time without refreshing the page using Javascript
body: <p>When i pass a value to textbox using Javascript it is working fine for the first time before updating data, after the update table will be refreshed. Then I couldn't pass value to textbox in the same way, but its working if I refresh the browser.</p>
  
  <pre><code>&lt;div id="div_for_values"&gt;&lt;a href="#" key_id="&lt;?php echo $name_id; ?&gt;" key_value="&lt;?php echo $name; ?&gt;"&gt;Edit&lt;/a&gt;&lt;/div&gt;
  
  $(function(){
      $("#div_for_values  a").click(function(){
          var key_id = $(this).attr("key_id");
          var key_value = $(this).attr("key_value");
         $('#txt_name_id').val(key_id);
         $('#txt_name').val(key_value);
         return false;
      })
  });
  </code></pre>