Re: DOM TextArea (and dom chart please)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





> I think what you are looking for is $input2->textContent in PHP.

Hey Andrew (and everyone else was was kind enough to write back) !

Found the solution, this is what i am using (and it works!), and i hope it helps anyone else who finds themselves in the spot i found myself

$inputs2 = $dom->getElementsByTagName('textarea'); // Find textareas  
foreach ($inputs2 as $input2) { 
        if(!$input2->nodeValue || $input2->nodeValue=="") { 
                $input2->nodeValue="it works!"; 
        } 
} 


Cheers guys!
/R



      

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux