Menu
Hi,
this is probably an easy one but I’m stumped.
I’m using this code to update the contents of a text box without reloading the page:
[CODE]<a href=”#” id=”link1″ onclick=”document.getElementById(‘Textbox’).innerHTML=t_intro;”>project summary</a>
Although this changes the contents of ‘Textbox’ fine, I also need it to change the link itself – edit the words ‘project summary’, along with changing its colour and making it bold.
I’ve tried self-referencing it using document.getElementById(‘link1’) inside the onclick, but it doesn’t seem to work. Any ideas?
Thanks,
Derek