Skip to content

Instantly share code, notes, and snippets.

@viller239
Created May 6, 2016 06:59
Show Gist options
  • Save viller239/416f39a4491fb6108de4572549e02c1b to your computer and use it in GitHub Desktop.
Save viller239/416f39a4491fb6108de4572549e02c1b to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style>
body {
padding: 20px;
background: white;
}
#sync, #async {
float: left;
width: 50%;
}
label {
display: block;
padding: 5px;
}
</style>
</head>
<body>
<div id="sync">
<label>
[text] <input type="text" value="text value" />
</label>
<label>
[search] <input type="search" value="search value" />
</label>
</div>
<div id="async"></div>
<script>
setTimeout(function () {
document.getElementById('async').innerHTML = document.getElementById('sync').innerHTML;
}, 2000);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment