skip to Main Content

Javascript – Add two errors to number validation

I'm using input type=numberand validation to it. What I am trying to do: if value is not number - show error only numbers allowed if input is empty - show error value is required yup.object().shape({ fieldName: yup.number().typeError("only numbers allowed").required("value required").min(0)…

VIEW QUESTION

Jquery – How to get validation result?

I use jQuery validator plugin from this link : https://www.jqueryscript.net/form/instant-input-validation.html#google_vignette Everything works fine, but when I press submit button, I want get result from $("#validate").inputValidation(); To make sure everything is correct. How can this be done? Thanks ,

VIEW QUESTION
Back To Top
Search