Email list

0

I have a button that calls this function in jQuery.

sendBtn.click(function(){
    $('#dialog-confirm-send').dialog({
        resizable: false,
        modal: true,
        buttons: [  {   
            text: "Cancelar",
            click: function(){
                $(this).dialog('close');}
            },
            {   
            text: "Enviar",
            click: function(){
                var content = $('.cart-item');
                envia(content, email);
                content.remove();
                $('cart-content').find('.placeholder').show();
                $(this).dialog('close');
                sendBtn.fadeOut('500');
                sendText.fadeIn('500');}
            }
        ]                   
    })
    return false;
});     

Editing: I would pick up the list and send it to another function. this other function will send pro script php via post. I can not get the list to send. I already did the envia() function and I'm calling it. she is running normal but does not lead to the list. In the console it says only object . Below the function:

function envia(content, email){
   alert("Eu alert!" + email);
}

Thank you in advance

    
asked by anonymous 04.12.2016 / 20:19

0 answers