Tuesday, 17 September 2013

how to get a string contained in a div

how to get a string contained in a div

I have a div that contains div in HTML code, i just want to retrieve the
string contained in that div, like the word "LATTE" or "price:12" in the
next code:
<!DOCTYPE html>
<html>
<head>

</head>
<body>
<div id="items">
<div id="heapbox_46958322" class="heapBox">

</div>
<select class="basic-example" style="display: none;">

</select>
<div id="dummy">

</div>
<div id="gallery">
<div class="item_block">

</div>
<div class="item_block">

</div>
<div class="item_block hasoptions">
price:12
<div class="add_btn"></div><div class="item_name">
LATTE
</div>
</div>
</div>
<div id="order_list">

</div>
</div>
<script type="text/javascript">

</script>
</body>

No comments:

Post a Comment