Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
Using FormMail and HTML layers?
Can I have multiple layers within the same Form? i.e. I want to be able to position a set of checkboxes and a comment box in a certain way that I can only do by having the separate elements in different layers.
(Bit of a newbie but with good grasp of basics)
Thanks
2 Answers
- 1 decade agoFavorite Answer
Of course you can. Just make sure that you give each element a unique id and that when you are doing the layers you assign layer depth 1, 2, 3, 0, etc. This will help you display teh form better and make yourr code cross browser compatible. And as long as all your form elements are inside of the <form> </form> tags then you should be fine!
- 1 decade ago
Form and layers are independent. So the answer to your question is yes. You can grab an element by ID using document.getElementById() method regardless whether your <div> or <span> or any other tag that is associated with the ID is located within <form> tag or not.