Re: DOM TextArea (and dom chart please)

From: Date: Wed, 03 Feb 2010 16:53:23 +0000
Subject: Re: DOM TextArea (and dom chart please)
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-301787@lists.php.net to get a copy of this message
> 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

« previous php.general (#301787) next »