Re: [PHP] DOM TextArea (and dom chart please)

[email protected] (Ryan S)
Newsgroups php.general
Message-ID <[email protected]>


>// I have even tried this instead of the above:
>
>foreach ($inputs2 as $input2) {
>        if(!$input2->getAttribute("defaultValue")=="") {
>                $input2->setAttribute("defaultValue","it works!");
>        }
>}
>
>but no joy.
>
>I'm betting its pretty simple but i dont have a "DOM chart" for php, the only ones i have been able to find via google are for javascript like this one: http://www.hscripts.com/tutorials/javascript/dom/textarea-events.php
>
>
>and that chart does not help much.  Does anyone have a PHP DOM chart or a resource that i can use to get started using this?
>
>
When I get stuck on things like this, I find print_r() invaluable as it can basically dump out the objects entire contents, so I can see what values it has set.
====================

Hey Ash,
Thanks for replyng.

Where exactly do i use the print_r? and on which variable?
Because i have tried it in different places but still no luck..
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.