On 5/29/07, timcharper <[EMAIL PROTECTED]> wrote:
>
>
> my_div = Element.build("div");
> my_div.build("h1", { innerHTML: "Hello there!" } );
> my_div.build("p", { innerHTML: "Hello, here is some text" },
> { fontSize: "25px"});


Радослав (Radoslav?) is right, we already have this:

my_div = new Element("div");
my_div.insert(new Element("h1").update("Hello there!"));
my_div.insert(new Element("p").update("Hello, here is some text").setStyle({
fontSize: "25px" }));

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to