setting a dynamic div as the response area?
I have a div that is repeated as such:
<div align="right" id="TotalPrice<?php echo $row_rsOrderItems[OrderItemId]; ?>">
case(''): alert("An error occured upda**** totals, please try again."); break;
default: document.getElementById('TotalPrice<?php echo $row_rsOrderItems[OrderItemId]; ?>').innerHTML = results;
I get an error that says that "document.getelementById("TotalPrice" + order_item_id) has no properties
What am I doing wrong?
how can I call a dynamic orderItemId inside the getElementById ??
Any help would be appreciated - Thanks