Laravel sweet alert issues
if the form shows the sweet alert box and then it redirects then remove
the focus value from:
<script>
function validateForm() {
var task = document.forms["task_form"]["task"].value;
if ( !task.length ) {
swal("Enter Task Description", "" , "warning") ;
// document.getElementById("task").focus(); REMOVE THIS SHIT
return false;
}
}
</script>