Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function CheckDuplicationFriends(){
- var email_list = [];
- jQuery('#save_recipient').click(function(){
- jQuery('input[id*="email"]').each(function(index, el){
- email_list[index] = jQuery(el).val();
- console.log(email_list);
- });
- jQuery.ajax({
- type:'POST',
- url: '/shop/ticket/friends/confirm/',
- dataType: 'json',
- data: {
- 'ticketproductid': jQuery('#productid').val(),
- 'email_list': email_list
- },
- success: function(data){
- jQuery('#quantity_product_form').submit()
- }
- errors: function(data){
- jQuery('#quantity_error').text(data.error_list.toString())
- }
- })
- });
- // return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement