# Javascript contents changer

**URL:** <https://forum.kirupa.com/t/javascript-contents-changer/197055>\
**Category:** web dev\
**Created:** [August 13, 2006, 7:23am UTC](https://forum.kirupa.com/t/javascript-contents-changer/197055 "2006-08-13T07:23:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brndn](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@brndn](https://forum.kirupa.com/u/brndn)\
**Post date:** [August 13, 2006, 7:23am UTC](https://forum.kirupa.com/t/javascript-contents-changer/197055/1 "2006-08-13T07:23:07Z")

</div>

\<div id=“tcontent2”\>  
\<p class=“header2”\>The Role Culture vdvddddsd\</p\>  
\</div\>  
\<div id=“tcontent3”\>  
\<p class=“header2”\>dssddddddddddddvdvddddsd\</p\>  
\</div\>

can any one give me a hand with some javascript functionality.  
[URL=“[http://brendanmeade.co.nz/maggot/portfolio.php](http://brendanmeade.co.nz/maggot/portfolio.php)”]  
page

I have these tabs and they change the conents in a specific area.  
What I want them to do is chage the contents in two areas?

if that makes sense

here is the java function but it wont allow two instances of “tcontents2”
