Skip to content

Instantly share code, notes, and snippets.

@aaizemberg
Created September 9, 2014 17:31
Show Gist options
  • Save aaizemberg/796bd6918ced682ed669 to your computer and use it in GitHub Desktop.
Save aaizemberg/796bd6918ced682ed669 to your computer and use it in GitHub Desktop.
seleccionando desde un date picker
<!DOCTYPE html>
<html>
<head>
<script src="http://d3js.org/d3.v3.min.js"></script>
<meta charset="utf-8">
<title>pirulo</title>
</head>
<body>
<input id="bday" type="date" name="bday">
<button onclick="doit()">OK</button>
<img src="">
<script>
function doit() {
var yyyymmdd = bday.value;
d3.select("body").append("p").text(bday.value);
}
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment