
JavaScript
0
Вклад в тег
$('#go').on('click', function(e){
e.preventDefault();
let data = {
id: $(this).attr('data-id')
};
$.ajax({
type: 'POST',
url: 'json.php',
data: data,
success: function(response){
...........
}
});
});