title: Replace table row with JQuery
body: <p>I encountered an error in replacing my row in my JQuery. This is my code snippet for my JQuery:</p>
  
  <pre><code>var newtr = '&lt;td&gt;'+data.row.createdDate+'&lt;/td&gt;'+
                              '&lt;td&gt;'+data.row.emergencyOrderID+'&lt;/td&gt;'+
                              '&lt;td&gt;'+data.row.firstName+' '+data.row.lastName+'&lt;/td&gt;'+
                              '&lt;td&gt;('+data.row.latitude+','+data.row.longitude+')&lt;/td&gt;'+
                              '&lt;td&gt;'+data.row.pickupLocation+'&lt;/td&gt;'+
                              '&lt;td&gt;'+data.row.hospitalName+'&lt;/td&gt;'+
                              '&lt;td&gt;'+data.row.driverName+'&lt;/td&gt;'+
                              '&lt;td&gt;'+data.row.emergencyStatus+'&lt;/td&gt;';
                 //$('#tbIDOrder-'+data.row.emergencyOrderID).html('test');
                 //alert('#tbIDOrder-'+data.row.emergencyOrderID);
                  $('#tbIDOrder-'+data.row.emergencyOrderID).parent().replaceWith(newtr);
  </code></pre>
  
  <p>and this is my row:</p>
  
  <pre><code>&lt;tr id="tbIDOrder-{{$o-&gt;EmergencyOrderID}}"&gt;
      &lt;td&gt;{{ $o-&gt;CreatedDate }}&lt;/td&gt;
      &lt;td&gt;{{ $o-&gt;EmergencyOrderID }}&lt;/td&gt;
      &lt;td&gt;{{ $o-&gt;FirstName }} {{ $o-&gt;LastName }}&lt;/td&gt;
  
      &lt;td&gt;({{ $o-&gt;Latitude }}),  ({{ $o-&gt;Longitude }})&lt;/td&gt;
      &lt;td&gt;{{ $o-&gt;PickupLocation }}&lt;/td&gt;
      &lt;td&gt;{{ $o-&gt;HospitalName}}&lt;/td&gt;
      &lt;td&gt;{{ $o-&gt;DriverName}}&lt;/td&gt;
      &lt;td&gt;{{ $o-&gt;EmergencyStatus }}&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>am i missing something? If it helps, im running this code with Pusher in Laravel :) thanks for your time.</p>
  
  <p>EDIT:
  I replaced the script to:</p>
  
  <pre><code>$('#tbIDOrder-'+data.row.emergencyOrderID).html(newtr);
  </code></pre>
  
  <p>but it still didnt work</p>