My challenge involves a table identified by the id of tableDiv
. I am looking to dynamically reset the values of each table header and data cells, but due to the nature of the table being created with ASP.NET (GridView), I am unable to assign classes for these elements.
I am aware that CSS can be set using the following approach:
vpw = $(window).width();
$('#tableDiv').css({ 'width': vpw * 0.95 });
However, I am seeking guidance on how to specifically target the headers and data cells within the table for this purpose.