Skip to content

Instantly share code, notes, and snippets.

View bitneek's full-sized avatar

Justin Stacey bitneek

View GitHub Profile
@bitneek
bitneek / Unbounce Form URL Params
Created November 2, 2011 21:46
How to add Unbounce form parameters to a URL
<script>
jQuery(document).ready(function() {
var processingSubmit = false;
var submitButton = jQuery('#'+window.module.lp.form.data.formButtonId);
var submitAction = submitButton.data('events').click[0];
var baseURL = window.module.lp.form.data.confirmData;
submitButton.unbind('click', submitAction);
submitButton.click(function(e) {
if (processingSubmit) {
return;
<style>
input.hint {color:#ccc}
</style>
<script>
jQuery(document).ready(function() {
var hints = {
"email": "Enter your email",
"first_name": "Enter you name"
};
var hideHint = function(field, text){
if (jQuery(field).val() === text) {
jQuery(field).val("");