tonelm54
asked on
each inside class inside a named div
If wanted to access each 'clsTransactionDate'
in the following code:-
I thought the following code would work:-
But it doesn't seem to be able to see anything, what am I doing wrong?
in the following code:-
<div id="Transactions">
<div class="TransRow">
<div class="clsTransactionDate">Date</div>
<div class="clsTransactionTrans">Transactions</div>
<div class="clsTransactionCounts"></div>
<div class="clsTransactionAmount">Amount</div>
<div class="clsTransactionStatus">Status</div>
</div>
</div>
I thought the following code would work:-
$("#Transactions .clsTransactionDate").each( function() { alert($(this).text); });
But it doesn't seem to be able to see anything, what am I doing wrong?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I hope that explains things a bit better, and you don't think Im going mad :-)