Road Closed

This information is outdated and is no longer maintained. Get the latest!


Does your jQuery plugin for LiveAddress API return DPV data?


Last Updated: March 15, 2013

Can I get the DPV data (specifically the dpv_match_code) by using your jQuery plugin for website forms?


Yep! With a little standard Javascript know-how, you can hook into the address validation process directly and do your own stuff. Precisely how to do that is fully documented. You can either hook into the events, or perform a validation request manually (without a UI) and supply a callback function.

Either way you do it, the plugin will hand you a Response object. For example, you can use response.raw to access the pure JSON results of the API, or call any of several wrapper functions like response.isMissingSecondary() to help you along.