views:

286

answers:

0

Hi Iam new to j query can any one let me know if there is a way to declare a jQuery.validator.addMethod function and write the java script inside this jquery validator for validating address where it should not take

"PO BOX", "PO BIN", "BIN", "P.O BOX", "P.O BIN", "P.O", "PO"

the above values can be in any case

spaces before, in between and after the above words should also be found and validated. For example: " P O 1234 " should be validated and alert error message.

But "Polo Rd", "Robin Rd", "testbintest" should be accepted as valid addresses

Please help me out with the java script for this thank you