M
M
m_xplay_official2019-02-06 00:42:32
AJAX
m_xplay_official, 2019-02-06 00:42:32

Who will tell you what the trouble is?

5c5a03288fe58015807078.jpeg
If anything is needed, I'll add it!

$(document).ready(function(){
    $('.security').on('click', function(){
        var data_click = $('buttom.security').val();
        var data_mailto = $('.mailto').val();

        // Отправляем данные в обработчик
        $.ajax({
            method: "POST",
            url: "code.php",
            data: {
            	data_click: key,
            	data_mailto: email,
            },
            success: function(html){
                $("#system").append(html);
            }
        });
    });
});

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Rsa97, 2019-02-06
@Rsa97

The key variable is not defined. You have swapped keys and values ​​in an object.

A
abberati, 2019-02-06
@abberati

Translate error text?
Please: it says "key variable is not declared".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question