Menu
Hi, I have a simple function which takes some HTML bolded text and a table cell ID (both passed from PHP). On mouseover the text is displayed in the specified cell. The only problem is that the text is raw HTML and the bold tags show instead of bolding the text. How do I get the text to be displayed in its intended form? I have had at a bash using innerHTML but I can’t really code in Javascript. Here’s my code so far: –
function display(text,cellID){
var getText = document.getElementById(cellID);
getText.appendChild(document.createTextNode(text));
}
Thanks
Solaar