I am trying to make a site in which through a simple click the client can change the language of some texts.
$(document).ready(function(){
$("#miboton").click(function(){
$("#micapa").html("Nuevo texto para cambiar");
});
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div id="micapa">Texto</div>
<a href="#" id="miboton">Cambiar el contenido</a>
What I want to do is also give you the option of going back to the original text, it is supposed to change the language, but I can not make it return original language. I hope you help me and thank you