I have a HTML table that showcases items and their respective daily information - usage, incoming shipments, and inventory. The goal is to initially hide the first two columns and reveal them on mouseover using jQuery. I am planning to assign a class to each row, set the first two rows as hidden, and then remove the class on mouseover for all three rows to be visible. However, I am facing issues with using CSS display: none; on HTML table td elements. Are there any alternative CSS commands available or do I need to approach this differently?
Here's an example of the table structure:
<table>
<tr>
<th>Item #</th>
<th colspan='3'>100017</th>
<th colspan='3'>100018</th>
<th colspan='3'>100019</th>
<th colspan='3'>100020</th>
</tr>
<tr>
<th>Component</th>
<th colspan='3'><u>chips</u></th>
<th colspan='3'><u>butterfingers</u></th>
<th colspan='3'><u>Flat Pretzels</u></th>
<th colspan='3'><u>Milk Chocolate</u></th>
</tr>
<tr>
<th>Date</th>
<td class='dailyusagetable'>0</td>
<td class='incommingtable'>0</td>
<td>0</td>
<td class='dailyusagetable'>0</td>
<td class='incommingtable'>0</td>
<td>0</td>
<td class='dailyusagetable'>0</td>
<td class='incommingtable'>0</td>
<td>0</td>
<td class='dailyusagetable'>0</td>
<td class='incommingtable'>0</td>
<td>0</td>
</tr>
</table>