Skip to main content

required

Required field, not empty.

const validator = new JustValidate('#form');

validator.addField('#name', [
{
rule: 'required',
},
]);

Demo