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 Quote Link to comment 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 <. Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.