I want to build a input form in which a user inserts a code and depending on what is introduced, show a message like UPS (or EAN/ISBN/GTIN ) code found or This code is not valid.
Have been looked for a library that can detect something like this but had no luck? First of all, can it be done, and if yes, any tips for such library?
$('input[type="text"]').each(function() {
$(this).rules('add', {
messages: {
required: "this is EAN code"
}
})
});
$('input[type="file"]').each(function() {
$(this).rules('add', {
messages: {
required: "this is ISBN code"
}
})
});