Re: DOM TextArea (and dom chart please)
| From: | Ryan S | Date: | Tue, 02 Feb 2010 20:06:47 +0000 |
| Subject: | Re: DOM TextArea (and dom chart please) | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-301739@lists.php.net to get a copy of this message | ||
>// 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..