Hi guys.
I have this code, a text that change when you click on him.
the code work fine but I want that when I click a second time the text change again to the 1st text. and continue to change as I click.
<div onclick="changeText(this)">More stuff</div>
<script language="javascript">
function changeText(currentElement){
currentElement.firstChild.data="Less stuff";
}
</script>
thanks for help!