Hi!
My append code works for Firefox and Internet Explorer but not for Opera and Google Chrome.

Here is the test page.

In Opera I get this error in Dragonfly:

Uncaught exception: [object DOMException]

Error thrown at line 3, column 16 in append(id, text) in http://3rlend.com/pjatt/append.html:
    var je = document.createElement('<span>');
called from line 7, column 12 in http://3rlend.com/pjatt/append.html:
    append("1", "lol")

Please help me, thanks! :)

Oh, it worked when I removed the < > in the document.createElement part!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.