Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
form = $('#option_expense_report')
when drop element
certificateId = element.data('certificate-id')
html += '<input type="hidden" id= value="' + certificateId + '" name="option_expense_report[certificates][]">'
form.append($(html))
$('a.certificate_link').click ->
certId = $(this).date('certificate-id')
$('input#' + certId).remove()
$(this).parent.remove()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.