I am trying to get the id for the drupal shopping cart widget so that I can refer to it within javascript. When I look at the shopping cart div within firebug (see below) it only lists the class and not the id and I tried referring to the class like it was the id but it was not recognized (i.e. drupal_add_js('alert(document.getElementById("panel-pane pane-block pane-uc-cart-0").value)','inline');<br>
).<br><br><div class="panel-pane pane-block pane-uc-cart-0"><br><br>How can I refer to the shopping cart using document.getElementById if it does not have an id?<br><div style="visibility: hidden; display: inline;" id="avg_ls_inline_popup">
</div><style type="text/css">#avg_ls_inline_popup { position:absolute; z-index:9999; padding: 0px 0px; margin-left: 0px; margin-top: 0px; width: 240px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 13px;}</style><br>
-- <br>John J. Mitchell<br>