Re: GetElementByClass?
| From: | tedd | Date: | Sat, 03 Apr 2010 16:30:52 +0000 |
| Subject: | Re: GetElementByClass? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-303794@lists.php.net to get a copy of this message | ||
At 12:18 PM -0400 4/3/10, tedd wrote:
At 8:14 AM -0600 4/3/10, Peter Pei wrote:Nope, I was wrong here. I was looking at the wrong example. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.comNo 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 --