Skip to main content

Custom Search Button

You may also specify any clickable DOM element as a trigger to lookup a postcode.

Identify your custom input via the button property.

 
PostcodeLookup.setup({
context: "#lookup_field",
apiKey: "ak_test",
button: "#customButton"
outputFields: {
line_1: "#first_line",
line_2: "#second_line",
line_3: "#third_line",
post_town: "#post_town",
postcode: "#postcode"
},
});

Live Demo

Loading...