Skip to content

Instantly share code, notes, and snippets.

@lbernstein
Created November 16, 2011 15:27
Show Gist options
  • Select an option

  • Save lbernstein/1370345 to your computer and use it in GitHub Desktop.

Select an option

Save lbernstein/1370345 to your computer and use it in GitHub Desktop.
<body>
<!-- Create input fields for email and company -->
<p>Email </p>
<input type="text" id="email" name="email" />
<p>Company </p>
<input type="text" id="company" name="company" />
<!-- Call Autocomplete, attach input fields and pass callback -->
<script type="text/javascript">
Demandbase.CompanyAutocomplete.widget({
company: "company", // attach autocomplete to input field with id = company
email: "email", // attach autocomplete to input field with id = email
key: "<Your_Demandbase_Key>", // add your demandbase key here
callback: myCallback // the callback to call.
});
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment