What exactly do you want to do? What you're explaining doesn't really
make sense - that is, hard-coding a DOM id in a component that doesn't
contain such an id. What is your ultimate goal?
chris
Baofeng Yu wrote:
Hi all,
I have a layout component that wraps around a page, say Start.tml.
Suppose there is a <div id="1"> element on Start.tml. In the
Layout.tml header section, I want to have some JavaScript code to
change that element. What is the correct way to get that element? It
seems document.getElementById('1') doesn't work in this case.
Thanks in advance,
Baofeng
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]