<script type="text/javascript"> $(document).ready(function(){ $('table tr').click(function(){ alert($('td:first-child', this).html()); }); }); </script>