Long ago, I was trying to get a value of a td class and appending the value to a text field in jquery.
<table> <tr> <td class="test">This is a test</td> </tr> </table> <input type="text" id="myTextBox" /> $('td').click(function() { var myClass = $(this).attr('class'); $('#myTextBox').val(myClass); })