Hello,
I'd like to know how I can access the ID in a DIV tag to change his name? For an image, I can access the src with document[0].src=... and I want something like that to assign the ID of my DIV tag with a Javascript function. The goal is to generate specific ID with Javascript.
Another Question: in Javascript, I use function to Show/Hide DIV but is it possible to Hide a DIV and Show another DIV over it? I want to call a DIV that replace another DIV. But when I Show DIV1 and I Hide it to Show DIV2, DIV2 doesn't replace DIV1 but appear after DIV1 which is hidden. How can I change this?
Thanks,
I'd like to know how I can access the ID in a DIV tag to change his name? For an image, I can access the src with document[0].src=... and I want something like that to assign the ID of my DIV tag with a Javascript function. The goal is to generate specific ID with Javascript.
Another Question: in Javascript, I use function to Show/Hide DIV but is it possible to Hide a DIV and Show another DIV over it? I want to call a DIV that replace another DIV. But when I Show DIV1 and I Hide it to Show DIV2, DIV2 doesn't replace DIV1 but appear after DIV1 which is hidden. How can I change this?
Thanks,