Hi all
I have dynamic list as below. How can I find the element when the button is clicked? eg.. When id="But2" is clicked how do I find the word electric in id="pd_2"
Thanks.
Age is a consequence of experience
I have dynamic list as below. How can I find the element when the button is clicked? eg.. When id="But2" is clicked how do I find the word electric in id="pd_2"
Thanks.
Code:
<div class="row" id="row_2">
<div class="column" id="PaymentID_2">
2
</div>
<div class="column">
NPower
</div>
<div class="column" id="cat_2">
Utilities
</div>
<div class="column" id="pa_2">
88.88
</div>
<div class="column" id="pd_2">
Electric
</div>
<div class="column">
<input id="But2" type="button" value="Update" class="setPaymentValues" />
</div>
<div class="column">
to-do
</div>
</div>
<div class="row" id="row_1">
<div class="column" id="PaymentID_1">
1
</div>
<div class="column">
b & Q
</div>
<div class="column" id="cat_1">
Tools /equipment
</div>
<div class="column" id="pa_1">
20.00
</div>
<div class="column" id="pd_1">
Some material
</div>
<div class="column">
<input id="But1" type="button" value="Update" class="setPaymentValues" />
</div>
<div class="column">
to-do
</div>
</div>
Age is a consequence of experience