Hi, all.
I am implementing the final now.
Here is one jquery syntax i want to ask.
I have been stuck by this problem more than hours.
Here is what i did
HTML part
<table>
<tr>
<td>
table head
</td>
</tr>
<tr id="mytr">//here i want to get the AJAX call to fill in more lines
</tr>
</table>
AJAX part
$.getJSON("foo.php",
function(data)
{ $.each(data,function(i)
{$("#mytr").html('<tr><th>'+data[i].one+'</th><th>'+data[i].two+'</th></tr>');
});
});
Which i got nothing in the page?? And there is no error shows.
I thought its syntax error in the Ajax part.
its just really simple function: got the elements from foo.php and print out in html by <tr> and <th>.
Any help will be appreciated.