Losing my mind from jquery validate and knockout

Losing my mind from jquery validate and knockout

Asked on December 31, 2018 in knockout js.
Add Comment


  • 1 Answer(s)

        Try this solution for this issue :

        Go in and set the submitHandler for this . Because the unobtrusive library is  already setup validation on the form :

        Try this code :

    // attach the jquery unobtrusive validator
    $.validator.unobtrusive.parse("#__frmAspect");
     
    // bind the submit handler to unobtrusive validation.
    $("#__frmAspect").data("validator").settings.submitHandler = viewModel.Save;
    
    Answered on December 31, 2018.
    Add Comment


  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.