<input id="button" type='button' value='Show the code'>
<script> jQuery(document).ready(function(){
jQuery('#button').click(function() {
jQuery(this).val('Hide the code');
});
});
jQuery(document).ready(function(){
jQuery('.thecode').hide();
jQuery('#button').click(function(){
jQuery('.thecode').slideToggle('slow');
});
});
</script>

What is the easiest way to change the text again to "Show the code"?

Please enter your name.
Please enter a message.
Please check the captcha to verify you are not a robot.