>// 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..