LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Changing the nodeValue to text and HTML (https://www.linuxquestions.org/questions/programming-9/changing-the-nodevalue-to-text-and-html-196049/)

HappyDude 06-21-2004 12:43 PM

Changing the nodeValue to text and HTML
 
I finally figured out how to use JavaScript to make text to appear and then disappear with the getElementBy things. I was just wondering how you would have something like
Code:

<span id="blah"><br>Some Text</span>
be printed but actually running <br> not displaying it. Thanks in advance. Below is what I use currently.
Code:

document.getElementById('something').firstChild.nodeValue="<br>Something";

HappyDude 06-21-2004 01:27 PM

Nvm, I'm just a numnut... I just switched it over to change a table, instead of a span.


All times are GMT -5. The time now is 03:44 AM.