Skip to content

Instantly share code, notes, and snippets.

@joshnesbitt
Created September 30, 2010 15:19
Show Gist options
  • Select an option

  • Save joshnesbitt/604738 to your computer and use it in GitHub Desktop.

Select an option

Save joshnesbitt/604738 to your computer and use it in GitHub Desktop.
var destination = document.getElementById("destinationTextbox");
var source = document.getElementById("sourceTextbox");
var destinationHandler = function(value){
return destination.value = value;
}
source.onchange = function(){
destinationHandler(this.value);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment