You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I want to add more data id into button such as <button data-id="user_id" data-loan="loan_id">
With this jquery code
`
$('.btnpopup').click(function() {
var userId = $(this).data('user_id');
var loanId = $(this).data('loan_id');
$.ajax({
url: 'post.php',
type: 'post',
data: {
userId: userId,
loanId: loanId
},
success: function(response) {
$('.modal-body').html(response);
$('#addkelas').modal('show');
if (!response) {
alert('kosong');
return;
}
}
});
});
`
No result after send to post.php. Any help would be appreciate. Thank you
The text was updated successfully, but these errors were encountered:
Hi! I want to add more data id into button such as
<button data-id="user_id" data-loan="loan_id">
With this jquery code
`
$('.btnpopup').click(function() {
var userId = $(this).data('user_id');
var loanId = $(this).data('loan_id');
$.ajax({
url: 'post.php',
type: 'post',
data: {
userId: userId,
loanId: loanId
},
success: function(response) {
$('.modal-body').html(response);
$('#addkelas').modal('show');
if (!response) {
alert('kosong');
return;
}
}
`
No result after send to post.php. Any help would be appreciate. Thank you
The text was updated successfully, but these errors were encountered: