Hi.... phpZoom
You can acces the Html with in Div Tag using the
innerHTML property. but u have to give the ID to DIV tag
Example: <div class="style" id="1"> <font size="2">Hello how are you</font> </div>
<div class="style" id="2"> <h1>professional developers
</div>
<script>
alert(document.getElementByID(1).innerHTML);
alert(document.getElementByID(1).innerHTML);
</script>
Hope you got it....
Regards
Mohd Asif Ali
On 2/17/06, phpZoom <gmail.com">itahead gmail.com> wrote:
Hi
Can any body give me an idea to fetch the contents between paired tags.
Example: <div class="style">
<font size="2">Hello how are you</font> </div>
<div class="style"> <h1>professional developers </div>
I want the below output from above source:
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Professional PHP Developers" group. To post to this group, send email to Professional-PHP googlegroups.com To unsubscribe from this group, send email to Professional-PHP-unsubscribe googlegroups.com For more options, visit this group at http://groups.google.com/group/Professional-PHP -~----------~----~----~----~------~----~------~--~---
|