On Thu, 28 Oct 2010 15:29:31 Ian Booth wrote:
> Hello YUI gurus
>
> Why can't I set the title on a YUI anchor object directly?
>
> ie
>
> link = Y.getElementById(...)
> link.title = "my title"
>
> fails (well, no error but doesn't work), but
>
> link.setAttribute('title', "my title");
>
> works.
>
> Any enlightenment for a YUI noob?
Because it is the YUI way? I think you get a Node object back.
Also, I think you shouldn't be using getElementById. Why not use the YUI
sector using the id?
Tim
_______________________________________________
Mailing list: https://launchpad.net/~launchpad-dev
Post to : [email protected]
Unsubscribe : https://launchpad.net/~launchpad-dev
More help : https://help.launchpad.net/ListHelp