try not to use 'a' as an id.

try:

<div id="an_id"></div>
alert($('an_id').get('tag'));


On Jan 15, 1:12 am, keif <[email protected]> wrote:
> Do you have the complete code?
>
> And doing body onload is kind of frowned upon - why not use the less
> obtrusive:
>
> window.addEvent('domready',function(){});
>
> ?
>
> -keif
>
> On Jan 14, 9:33 am, itaymoav <[email protected]> wrote:
>
> > No,
> > I am old fashioned:
>
> > <body onload='init()'>
>
> > On Jan 13, 4:26 pm, nutron <[email protected]> wrote:
>
> > > are you using domready?
>
> > > On Tue, Jan 13, 2009 at 1:24 PM, Itay Moav (via Nabble) <
> > > [email protected]<ml-user%[email protected]>
>
> > > > wrote:
> > > > why does Elm.get('tag') does not work in IE 7
>
> > > > There is not much here:
> > > > alert($('a').get('tag'));
> > > > <div id='a'>
>
> > > > ------------------------------
> > > >  View message @
> > > >http://n2.nabble.com/why-does-Elm.get%28%27tag%27%29-does-not-work-in...
> > > > To start a new topic under MooTools Users, email
> > > > [email protected]<ml-node%[email protected]>
> > > > To unsubscribe from MooTools Users, click here< (link removed) >.
>
> > > -----
> > > The MooTools Tutorial:  http://www.mootorial.comwww.mootorial.com
> > > Clientcide:  http://www.clientcide.comwww.clientcide.com
> > > --
> > > View this message in 
> > > context:http://n2.nabble.com/why-does-Elm.get%28%27tag%27%29-does-not-work-in...
> > > Sent from the MooTools Users mailing list archive at Nabble.com.

Reply via email to