nezbo Posted January 21, 2008 Share Posted January 21, 2008 Hi all I and sure that this will be an easy one for you all but what i am trying to do is change some test within a <span>. here is my code so far : <span id="the_label"> << </span> <script type="javascript"> document.the_label.innerHTML = " >> "; </script> i will am going to put this in an if statement in there after i have managed to get it working Link to comment https://forums.phpfreaks.com/topic/87031-solved-changing-test-with-in-a/ Share on other sites More sharing options...
xenophobia Posted January 21, 2008 Share Posted January 21, 2008 Try out this: document.getElementById("the_label").innerHTML = " >> "; Errmm about the arrow you used in the HTML, try not to use it in the code. Because it will confuse the browser it as a tag opening. Use > and <. Link to comment https://forums.phpfreaks.com/topic/87031-solved-changing-test-with-in-a/#findComment-445111 Share on other sites More sharing options...
nezbo Posted January 21, 2008 Author Share Posted January 21, 2008 i have managed to get it working, but i will use your advice with the << and >> Cheers Link to comment https://forums.phpfreaks.com/topic/87031-solved-changing-test-with-in-a/#findComment-445115 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.