Skip to content

Instantly share code, notes, and snippets.

@joevandyk
Forked from cohitre/gist:1337920
Created November 3, 2011 22:18
Show Gist options
  • Save joevandyk/1338015 to your computer and use it in GitHub Desktop.
Save joevandyk/1338015 to your computer and use it in GitHub Desktop.
Tanga.initialize '#upsell', ->
select = $('#upsell select')
notice = $('#upsell p.notice')
checkbox = $('#upsell :checkbox')
callback = ->
notice.toggle(@checked)
select.attr("disabled", !@checked)
true
checkbox.change(callback).change()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment