Hello,
How do I put a row in ajax in the middle of a table
It’s not ajax, <div id=”ajax-output”></div> how to place it in the middle of the table
“`
<script type=”text/javascript” language=”javascript”>
$(document).ready(function(){
$.ajax({
url: “ajax.php”,
type: “GET”,
cache: false,
success: function(dataResult){
$(“#ajax-output”).html(dataResult);
}
});
});
</script>
index.php
“`
<table border=”1″ width=”32%”>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<div id=”ajax-output”></div>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
ajax.php
“`
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
Thank you from now