From: Geoff on
On Thu, 22 Apr 2010 23:37:50 +0200, Gregor Kofler
<usenet(a)gregorkofler.com> wrote:

>Am 2010-04-22 20:52, Geoff meinte:
>> On Thu, 22 Apr 2010 12:24:50 +0200, Gregor Kofler
>> <usenet(a)gregorkofler.com> wrote:
>
>>> Indeed. Why are you using ids when you cant ensure that they stay
>>> unique? Use classes instead.
>>
>> I am using class for another property.
>
>You mean you use the class attribute to identify objects in a different
>context? You can assign several (CSS-)classes to an element. With
>
><input class="foo bar">
>
>getElementsByClassName()[1] (or the custom stand-ins for this method)
>will find this input both when you look for className "foo" and
>className "bar".

Gregor,

That I didn't know - thanks.

Geoff

>
>Gregor
>
>
>[1]
>https://developer.mozilla.org/en/DOM/document.getElementsByClassName
First  |  Prev  | 
Pages: 1 2
Prev: option & textnode
Next: iframes? something better?