i have made a table in asp classic that generates values dynamically.Wri tten a jQuery for retrieving the values from this table by clicking on a checkbox & displaying it in a msgbox i want to save it in an array assuming the customer will select more than one row
My problem is:
1)array size
2)only once the value should be save in an array
3)The back ground of the row doesn't change
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');
}
});
1)array size
2)only once the value should be save in an array
3)The back ground of the row doesn't change
Comment