<html>
<body>
<input type="week" id="myWeek">
<p>Click the button to disable the week field.</p>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction() {
document.getElementById("myWeek").disabled = true;
}
</script>
</body>
</html>