First, I want to check some of the entered field values ββor not. After that, When I click the submit button, the button should be disabled after one click to avoid duplicate sending. How to do this using javascript?
<script type="text/javascript" language="javascript"> function ValidateIt() { if (document.getElementById('ddlProblemCategory').value == 0) { alert("Please fill some value"); return false; } return true; } function DisableIt() { if (ValidateIt() == true) document.getElementById('btnSaveProblem').disabled = true; } </script>
source share