I have this part of the code:
JS:
function changeText() {
document.getElementById('lang').innerHTML = 'default language';
}
HTML:
<p id='lang'>
some other language
<input type='text' style="font-size: 12px;" onclick='changeText()' value='click me'/>
</p>
"Click me" button works, and switches "default language" to "some other language", but disappears after initial click. I would like to be able to switch back and forth languages on that same button, but i was able only to add another button. Help ?