MfgLabs/js-vat — pull request #1 by lovetheidea (2013-11-25 12:33:10+00:00)
Title: Update examples

Hi,

Just thought id let you know that you documentation doesn't seem to match what you have in libs.

CheckVATNumber requires you to pass two parameters in your example below:

"if (checkVATNumber (myVATNumber))
alert ("VAT number has a valid format")
else
alert ("VAT number has invalid format");
"

checkVATNumber returns an object not a true of false value. `checkVATForGivenCountryCode` function does not exist too.

Stripped down the versions, to just the most recent.

Last thing, the .trim() function is not supported in IE8. Replaced with replace.
http://stackoverflow.com/questions/2308134/trim-in-javascript-not-working-in-ie