Skip to content

Instantly share code, notes, and snippets.

@salsalabs
Created August 4, 2014 22:29
Show Gist options
  • Select an option

  • Save salsalabs/2d2c169a90382d6b71c6 to your computer and use it in GitHub Desktop.

Select an option

Save salsalabs/2d2c169a90382d6b71c6 to your computer and use it in GitHub Desktop.
Script to hide the "other" field from a template
<script type="text/javascript">
$(document).ready(function () {
if (/donate_page_KEY=12345/.test(window.location.href)) {
$('.otherRow input').attr('disabled', true)
$('.otherRow').hide()
}
})
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment