<html>
<body>
<h2>Use select() to select the content of a Month Field</h2>
Month: <input type="month" id="myMonth" value="2014-05">
<p>Click the button to select the content of the month field.</p>
<button type="button" onclick="myFunction()">Try it</button>
<script>
function myFunction() {
document.getElementById("myMonth").select();
}
</script>
</body>
</html>