Skip to content

Instantly share code, notes, and snippets.

@totomz
Created March 8, 2019 16:14
Show Gist options
  • Save totomz/d7cb7b89e7fd4d7d80ff6244048f5088 to your computer and use it in GitHub Desktop.
Save totomz/d7cb7b89e7fd4d7d80ff6244048f5088 to your computer and use it in GitHub Desktop.
<script>
hbspt.forms.create({
portalId: "0000",
formId: "aaa-bbbb-cccc",
onFormReady: function($form){
var input = $form.find('input[type=email]');
input.addClass('form-control');
input.attr('placeholder','Enter your e-mail address');
// Get rid of labels we don't whant them
$form.find('label').remove();
// Style the submit button
$form.find('.actions').addClass('subscribe-submit form-group clearfix mb-0');
var submit = $form.find('input[type=submit]');
submit.addClass('btn btn-primary btn-square float-left');
}
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment