hey people ,
i need help
This is the code which retrieves the value from a table-data when clicked on it now i want to store that data in a session How would i do that???
i need help
Code:
$(document).ready(function () { //assigning alternative row style $("#Table_Data tr:even").addClass("evenrow"); $("#Table_Data tr:odd").addClass("oddrow"); $("#Table_Data tr").click(function(){ $(this).find(':checkbox').attr('checked', ! $(this).find(':checkbox').attr('checked')); if($(this).find(':checkbox').attr('checked')) { var html = ''; $(' #Table_Data td').click(function() { html = $(this).text(); alert(html); }); } else { $(this).removeClass('highlight'); $(this).addClass('evenrow'); } }); });
Comment