I made a button to open a configuration screen, when I click open the screen, and the button changes from "Configuration" to "Back" but I would like it when I clicked again to write "Configuration" .
Can anyone help me? Preferably in jQuery .
$("#settings").hide();
$("#principal").show();
$("#config").click(function(){
$("#settings").toggle();
$("#principal").toggle();
$(this).html("Voltar");