A lightweight toolkit for interacting with Hubspot's AJAX Form Submission endpoint. No dependencies, no BS.
- Use a
new HubspotAjaxForm()
instance. Simply pass it two arguments: the CSS Selector for your form, and an Object of options. - Include this library on a page and throw some data-attributes on your form.