From 21bb33616681234f2c9f4699d7ad20a188cb3bcb Mon Sep 17 00:00:00 2001 From: PCoder Date: Sun, 22 Oct 2017 00:20:40 +0200 Subject: [PATCH] Add js code to submit id_card --- hosting/static/hosting/js/payment.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hosting/static/hosting/js/payment.js b/hosting/static/hosting/js/payment.js index ef59416b..4934fdd3 100644 --- a/hosting/static/hosting/js/payment.js +++ b/hosting/static/hosting/js/payment.js @@ -195,5 +195,11 @@ $(document).ready(function () { $(element).closest('.form-group').append(error); } }); + + $('.credit-card-info .btn.choice-btn').click(function(){ + var id = this.dataset['id_card']; + $('#id_card').val(id); + $('#billing-form').submit(); + }); });