Menu
Hi,
my question is a very simple one. I knew the solution but it is escaping me at this moment. This is the code:
<body>
<p id=”color”>Text to be colored</p>
<p><a href=”#” onclick=”document.getElementById(‘color’).fgColor=’#ff0000′;”>clik me</a></p>
</body>
What I want is that, when we click on the text “clik me” the text color of “Text to be colored” should change. I don’t understand where I may be commiting a mistake. Pls help me out without laughing on the silly problem I have put.
Thanks.