This is the Ajax .
<script >
var productChecked = $.ajax({
method : 'POST',
url: '../../checkout',
async: false,
dataType: 'json',
data : { 'brand' :brand,
'category' : category
}
}).responseText;
console.log(productChecked);
</script>
responseText will tell us if there is error message with making error message our selves
Tidak ada komentar:
Posting Komentar