K
Kermit Piper
Hello,
I have been searching and searching for a js function that can check
whether or not a UPC code that is entered is a valid format. I don't
expect the correct UPC code in relation to the actual product (although
we hope that is accurate), but at least check that the number entered
is in fact a valid UPC code, just like they do for credit cards. I need
this for UPC code from 8 to 13 digits in length. I found a couple
things but they didn't seem to work. They added a check digit which
didn't match the check digit on the UPC codes I got off an actual
product. Is there something out there that doesn't have to add a check
digit and that can just take the whole UPC number and check whether
it's valid or not?
Thanks,
KP
I have been searching and searching for a js function that can check
whether or not a UPC code that is entered is a valid format. I don't
expect the correct UPC code in relation to the actual product (although
we hope that is accurate), but at least check that the number entered
is in fact a valid UPC code, just like they do for credit cards. I need
this for UPC code from 8 to 13 digits in length. I found a couple
things but they didn't seem to work. They added a check digit which
didn't match the check digit on the UPC codes I got off an actual
product. Is there something out there that doesn't have to add a check
digit and that can just take the whole UPC number and check whether
it's valid or not?
Thanks,
KP