title: Jquery html() for particular rows
body: <p>I have created dynamic rows with type(select),name(text),unit(select), I was writing the code for on change type's select.
  But when I change the value from type field it had load the value into current row name field and load option dynamically into current unit select field, 
  Loading value into active rows is working fine, but loading options into select unit is not.</p>
  
  <p>My code is given below </p>
  
  <pre><code>$(document).on('change', '.raw', function () {
      // var r = this.val();
      if ($(this).val() != 0) {
      var t = $(this).parents('tr').find(".raw :selected").text();
      $(this).parents('tr').find(".name").val(t);
  </code></pre>
  
  <p>where I need help is given below</p>
  
  <pre><code>$(this).parents('tr').find(".amount").html(data); -&gt; here i need help
  // $(".amount").html(data); -&gt;this working fine but change all the select value
  </code></pre>
  
  <p>Thanks in advance.
  here my full coding for my table</p>
  
  <pre><code>&lt;table id="addingtable" class="table table-bordered"&gt;
  &lt;tr&gt;
    &lt;th&gt;Raw Master&lt;/th&gt;
    &lt;th&gt;Name&lt;/th&gt;
    &lt;th&gt;Display&lt;/th&gt;
    &lt;th&gt;Value&lt;/th&gt;
    &lt;th&gt;Unit&lt;/th&gt;
    &lt;th&gt;Delete&lt;/th&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;&lt;select name='rawmaster[]'  class = 'form-control raw' required&gt;&lt;option&gt;Select&lt;/option&gt;&lt;?php echo rawmaster_item($conn,$type);  ?&gt;&lt;option value="0"&gt;None&lt;/option&gt;&lt;/select&gt;&lt;/td&gt;
    &lt;td&gt;&lt;input type='text' name='name[]'  placeholder="Name" class = 'form-control name' required /&gt;&lt;/td&gt;
    &lt;td&gt;&lt;select name='des[]' class = 'form-control' required&gt;&lt;option&gt;Select&lt;/option&gt;&lt;option Value = 'y'&gt;Yes&lt;/option&gt;&lt;option Value = 'n'&gt;No&lt;/option&gt;&lt;/select&gt;&lt;/td&gt;
    &lt;td&gt;&lt;input type='text' name='value[]' placeholder="Value" class = 'form-control' required /&gt;&lt;/td&gt;
     &lt;td&gt;&lt;select name='amount[]' class = 'form-control amount' required&gt;&lt;option&gt;Select&lt;/option&gt;&lt;?php echo $output2;  ?&gt;&lt;/select&gt;&lt;/td&gt;
    &lt;td&gt;&lt;button type='button' class='btn btn-icon btn-danger remove'&gt;&lt;i class='feather icon-trash-2'&gt;&lt;/i&gt;&lt;/button&gt;&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p></p>
  
  <p>my jquery for adding rows</p>
  
  <pre><code>$(document).on("click", ".addrows", function (event) {
  {
    // var planid = $("#plan_id").val();
    // alert(planid);
    var html = '';
    html += "&lt;tr&gt;";
    html += "&lt;td&gt;&lt;select name='rawmaster[]' class = 'form-control raw'&gt;&lt;option&gt;Select&lt;/option&gt;&lt;?php echo rawmaster_item($conn,$type);  ?&gt;&lt;option value = '0'&gt;None&lt;/option&gt;&lt;/select&gt;&lt;/td&gt;";
    html += "&lt;td&gt;&lt;input type='text' name='name[]'  placeholder='Name' class = 'form-control name' /&gt;&lt;/td&gt;";
    html += "&lt;td&gt;&lt;select name='des[]' class = 'form-control'&gt;&lt;option&gt;Select&lt;/option&gt;&lt;option Value = 'y'&gt;Yes&lt;/option&gt;&lt;option Value = 'n'&gt;No&lt;/option&gt;&lt;/select&gt;&lt;/td&gt;";
    html += "&lt;td&gt;&lt;input type='text' name='value[]'  placeholder='Value' class = 'form-control' /&gt;&lt;/td&gt;";
    html += " &lt;td&gt;&lt;select name='amount[] amount' class = 'form-control amount' required&gt;&lt;option&gt;Select&lt;/option&gt;&lt;?php echo $output2;  ?&gt;&lt;/select&gt;&lt;/td&gt;";
    html += "&lt;td&gt;&lt;button type='button' class='btn btn-icon btn-danger remove'&gt;&lt;i class='feather icon-trash-2'&gt;&lt;/i&gt;&lt;/button&gt;&lt;/td&gt;";
    html += "&lt;/tr&gt;";
    $("#addingtable").append(html);
   }
   });
  </code></pre>
  
  <p>my jquery for onchange select values</p>
  
  <pre><code> $(document).on('change', '.raw', function () {
    // var r = this.val();
  if ($(this).val() != 0) {
    var t = $(this).parents('tr').find(".raw :selected").text();
    $(this).parents('tr').find(".name").val(t);
      $(this).parents('tr').find(".name").attr("readonly", "TRUE");
      var r =  $(this).parents('tr').find(".raw").val();
      // alert(r);
      $.ajax({
  url:"plandetails_getunit.php",
  method:"POST",
  data:"id="+r,
  success:function(data)
  {
   if(data)
   {
     $(this).parents('tr').find(".amount").html(data); =&gt; need help here
     // $(".amount").html(data);
   }
    }
    });
    } 
  else{
   $(this).parents('tr').find(".name").val('');
      $(this).parents('tr').find(".name").removeAttr("readonly");
      var r = $("#ptype").val();
        $.ajax({
  url:"plandetails_getunit1.php",
  method:"POST",
  data:"id="+r,
  success:function(data)
  {
   if(data)
   {
    // $(".amount").html(data);
     $(this).parents('tr').find(".amount").val(); =&gt;here remains work gud
   }
  }
   });
     }
   });
  </code></pre>