I have variable called Votes. And its looped like a list view.I want to update a specific raw item value of this varible.For that I use raw number here hard coded 765, and managed to get in. How can i get the value nodes[i].dataset.key
and increment it
eg: My raw id 765 --> $varible value is 30 --> make it 31
if (nodes[i].dataset.key == 765){
// i want to go inside using raw ID and update the value display on that raw
}
Requirement:
I have varibale numVotes in a loop with values. In raw 765 i want to update that value. I already figured to find the exact raw now how to update the varibale value in that raw?
Update:
<td align="center" colspan="5" class="num_votes" data-key="<?php echo $rawID ?>"><?php echo $votes ?></td>
This is what i'm targeting. this is inside a raw.Now if this is raw 765 i want to update the vale $votes of that particular raw !