Ouch. Of course! Thank you =)

2009/4/28 MorningZ <morni...@gmail.com>

>
> if "smt" is supposed to mean "something", then yes you did
>
> e2 = document.getElementById('xxx'),
>
> won't "get" this HTML
>
> <div id="#xxx">xxx</div>
>
> as the ID is not "xxx", you have "#xxx"
>
> <div id="xxx">xxx</div>
>
> would be had with
>
> e2 = document.getElementById('xxx'),
>
>
>
> On Apr 28, 7:43 am, KidsKilla <kidski...@gmail.com> wrote:
> > Hi there!
> >
> > Maybe I missed smt, but seems like this is a bug:
> >
> > <div id="#xxx">xxx</div>
> > <div id="#yyy">yyy</div>
> >
> > <script type="text/javascript" src="jquery.js"></script>
> > <script type="text/javascript">
> > var e1 = document.getElementById('yyy'),
> >         e2 = document.getElementById('xxx'),
> >         $e = $(e1);
> > alert($e.length);
> > $e.add(e2); // or $e = $e.add(e2);
> > alert($e.length);
> > </script>
>



-- 
Максим Игоревич Гришаев,
AstroStar.ru

Reply via email to