I have the following code
$("#description tr").each(function(){
var description;
var chargecode;
var amount=0;
…….the code continues but what I am interested in is to do the each function after the first row. My first table row has the titles so my code keeps getting null variable values and so on. Is this possible or should I just separate the title row as a different table?
All help appreciated
The parameter to the
each()callback is the index. You could use that or you could define you table properly with<thead>and<tbody>and then use$("#description tbody tr")