Re: GetElementByClass?

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

 




Somejavascript engine already support GetElementByClass, for example Opera does.

My example shows how, namely:

document.getElementById("question").innerHTML;

will return the value within the class.

Cheers,

tedd


In your original post, you said the data you had was:

<p class="question">
   Who is Roger Rabbit?
</p>

Does that still stand? or there was a typo, and class should really be ID?
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

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