Jump to content

Appendchild doesn't like label


unemployment

Recommended Posts

The .label. is killing the code, but I want to append the child as a label not just plain text. Please help.

 

function show_error_body(label, msg){
        removeChildren(label);
        document.getElementById("submitmessage").label.appendChild(document.createTextNode(msg));
    }

Link to comment
https://forums.phpfreaks.com/topic/226784-appendchild-doesnt-like-label/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.