I have a HTML table with following structure
<thead>
                        <tr>
                            <th>COMPANY</th>
                            <th>DATE</th>
                            <th>SHARE</th>
                            <th>COST PRICE</th>                                 
                        </tr>                
</thead>
In the data section I have following structure.
<tr>
                            <td rowspan="2">COMPANY1</td>
                            <td>DATE1</td>
                            <td>SHARE1</td>
                            <td>COST PRICE1</td>                                 
</tr> 
when I try to update the <td>s in the table dynamically from jquery I need to add some logic to check if first element has spanned multiple rows. I wanted to ask if we can update row based on the header, something like associative array.
Like this pseudo code $(this).td[<WHERE th=SHARE>].text("something)