<script type="text/javascript"> $(document).ready(function(){ $('table tr').click(function(){ alert($(this.cells[0]).text()); }); }); </script>