Skip to content

Instantly share code, notes, and snippets.

@luckyruby
Created August 6, 2014 07:29
Show Gist options
  • Save luckyruby/0a5fe1f219d6c6dbf254 to your computer and use it in GitHub Desktop.
Save luckyruby/0a5fe1f219d6c6dbf254 to your computer and use it in GitHub Desktop.
$('#resort_add_on_add_on_id').change (e) ->
$("#resort_add_on_add_on_id option:selected").each ->
description = $(this).data('description')
price = $(this).data('price')
pricing = $(this).data('pricing')
$("#resort_add_on_description").attr("placeholder", description)
$("#resort_add_on_price").attr("placeholder", price)
$("#resort_add_on_pricing").val(pricing)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment