Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
input mirroring quick example
<script type="text/javascript">
function mirrorInput(source, dest) {
var destination = document.getElementById(dest);
destination.innerHTML = source.value;
<span id="yourName"></span>
<form method="post">
<input type="text" name="name" onKeyUp="mirrorInput(this, 'yourName')" value="">
<button type="submit">Send</button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment