when fill Wrong details and click on submit button.Error accured fine but after that i click on reset button so textbox not clear why button "
<button type="reset" class="btn btn-danger" onclick="clearForm()">Reset</button>
"
javascript code for clear filds "
<script> function clearForm() { debugger document.getElementById('User_Name').value = ""; document.getElementById('Password').value = ""; document.getElementById('Role').value = ""; } </script>