Skip to content
Advertisement

Tag: validation

Making calculator using Ajax with jQuery validator plugin but Ajax conduct submission before the validation

I’m making calculator using Ajax with validator plugin I could make calculator work but cannot implement validator to this… there are 2 issues. Since my HTML code’s button type is ‘button’ validation plugin doesn’t work. if I change this to ‘submit’ it redirect to the other page. Ajax conduct the answer before the validation! I tried beforeSubmit and submitHandler…..maybe I

How to Joi-Allow an empty Date String [Joi]

as the title states, how to allow an empty Date-String through Joi validation. When adding: it gets the Issue: message: “”Date” must be a number of milliseconds or valid date string” with this Joi-Validation: Question: How can an empty Date-String be allowed through Joi validation? EDIT: By removing: .required() and or adding .default(“”) i do get another error, when adding

Email validation using Javascript doesn’t work with HTML

I’m trying to let user check if his email adress pass RFC standard, comparing it with regular expression dropped below. I already checked few examples on console using function responsible for excecute validation test. I’m aware of possibilities that my regex is not ready for, but whenever I tried a few examples on console – it works. Problem begins when

Advertisement