Help with very simple ajax and jquery
Ok, bear with me cause Im new to all of this.... I basically want to be able to use tablesorter in tables that are being brought up through ajax.... heres a very simple code example of what I need to get working so I can apply it into my project.
-
<html>
<head>
<script src=jquery.js></script>
<script src=tablesorter/jquery.tablesorter.js></script>
<script type=text/javascript>
$(document).ready(function()
{
$("#txthint").load("tabla.html");
$('table').tablesorter();
}
);
</script>
<title> Proveedor </title>
</head>
<body>
<div id="txthint"></div>
</body>
</html>
What Im getting is that the table appears but it is not sortable .... if I put the table inside this document without ajax, just static content, then it is sortable.... anyone?... I have the feeling its got something to do with the fact that the table is not actually there when the document is ""ready"