Skip to content

Instantly share code, notes, and snippets.

@megub
megub / change-formfield-name
Created July 22, 2015 22:52
Change form field name
<script>
$('#first_name').attr('name', 'first-name');
</script>
@megub
megub / month-year-datepicker
Last active August 29, 2015 14:24
Add Month and Year to Date Picker
<script>
$(function() {
$( "#birthday" ).datepicker({
changeMonth: true,
changeYear: true,
yearRange: "-100:+0"
});
});
</script>
@megub
megub / redirect-form-confirmation-from-pop-up
Created July 8, 2015 18:44
Redirect Thank you page/form confirmation dialog from pop up
To be placed on form confirmation/thank you page in head
<script>
if ( window.self !== window.parent ) window.parent.location.href = window.location.href;
</script>
@megub
megub / remove-underline
Created June 16, 2015 18:40
Remove Text Link Underline
<style>
div.lp-pom-root .lp-pom-text a {
text-decoration: none;
}
</style>
@megub
megub / to-the-edge
Created June 3, 2015 23:01
Setting Logo and Navigation to the very page edges
<style>
#lp-pom-image-32{
position: fixed;
left: 10px;
}
#lp-pom-text-176 {
position: fixed;
right: 10px;
left: initial;
}
@megub
megub / bullet-color
Created May 27, 2015 22:15
Change color of bullets
<style>
div.lp-pom-root .lp-pom-text ul li {
color: #28323f;
}
</style>
@megub
megub / gist:1da862dd5c2d9686b703
Last active August 29, 2015 14:21
To remove scroll bar on lightbox caused by 1px padding bottom
1. Add the following script to the Stylesheet on the page being loaded in the lightbox
<style>
.lp-pom-root {
padding-bottom: 0 !important;
}
</style>
@megub
megub / backgroundColorDropDown
Last active August 29, 2015 14:21
Change background of all form fields including drop downs
<style>
select{
background-color: #9c9b9b;
}
</style>