Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<script language="javascript">
function hideSubmit(chk, obj) {
obj.style.display = (chk.checked) ? "none" : "inline";
}
</script>
<body>
<form name="blahForm">
<input type="checkbox" onclick="hideSubmit(this, document.getElementById('submitButton'))">Hide submit button.<br>
<input type="submit" value="submit" id="submitButton">
</form>
</body>
I gave you a 14 line example. The only way there's an error on line 87 is if you copied/pasted this into your own program. This being the case, you're gonna have to change the element names accordingly to get it to work.Line: 87