I am creating a form with warning elements. Everything works fine, but you need to better define my templates.
$("#postcode").inputNotes(
{
warning: {
pattern: /^[0-9]+$/,
type: 'note',
text: 'Only numbers, please ...',
inversedBehavior: true
}
}
);
$("#phone").inputNotes(
{
warning: {
pattern: /^[0-9]+$/,
type: 'note',
text: 'Only numbers, no spaces please ...',
inversedBehavior: true
}
}
);
Good for postal code warning, I want the template to expect 4 numbers
To alert the phone, I want the template to expect 10 numbers.
Any help was appreciated.
source
share