const $ = (selector) => {
const elements = document.querySelectorAll(selector);
return new Jquery(elements);
}
const $ = function(selector) {
const elements = document.querySelectorAll(selector);
return new Jquery(elements);
}
$('.button').on('click', function(){
var sendData = new FormData();
sendData.append('ajx', 'ajx');
console.log(sendData);
send_form(sendData, '<?=$formId?>');
});
function send_form(send, container_id) {
$.ajax({
url: '/include/form_ajax.php',
type: 'POST',
dataType: 'JSON',
data: send,
processData: false,
contentType: false,
...