Re: GetElementByClass?

From: Date: Sat, 03 Apr 2010 16:18:44 +0000
Subject: Re: GetElementByClass?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-303789@lists.php.net to get a copy of this message
At 8:14 AM -0600 4/3/10, Peter Pei wrote:
No javascript's getElementByID() won't work here. As "question" is a class, not an ID. But like what was mentioned here, you can use getElementByClass() with Opera, and that will work.
Sort of. Like I said, the folling will work: document.getElementById("question").innerHTML; While you are using a getElementById, which returns an ID, but adding .innerHTML will return the class value. Try it. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com

« previous php.general (#303789) next »