<table>
...
</table>
<script type="text/javascript">
$(selecctor).click(...)
</script>
The above is to be dynamic loaded by ajax.
What I want to do is restrict the selector so that it only affects the DOM within the table above it.I( can't assign an idto the table)
EDIT
To Gumbo's solution:
<div id="container">
</div>
<table>
..
</table>
I think for the above html,it will fail,because $('table:last') is not the newly loaded table,but the table after container