Q
question.boy
I have been trying to find an example of how-to add html text to an
exisiting div and have had little success.
The best I found so far was
var pTag = document.createElement("p");
pTag.innerHTML = noBlanks+" is a mandatory field.";
document.getElementById("FormErrors").appendChild(pTag);
However, I was hoping I could pass HTML code and not just text,
something more like
"New line added.<br />"
or anyother HTML Tag I may need to use.
Also, the code only seems to work in IE and not Firefox...?
Thank you for your help!
QB
exisiting div and have had little success.
The best I found so far was
var pTag = document.createElement("p");
pTag.innerHTML = noBlanks+" is a mandatory field.";
document.getElementById("FormErrors").appendChild(pTag);
However, I was hoping I could pass HTML code and not just text,
something more like
"New line added.<br />"
or anyother HTML Tag I may need to use.
Also, the code only seems to work in IE and not Firefox...?
Thank you for your help!
QB