ieiciet / Checkout-ShoppingCart

This website is live at https://ieiciet.github.io/Checkout-ShoppingCart
7 stars 8 forks source link

Added validation before checkout button click #25

Open rsinghcodes opened 3 years ago

rsinghcodes commented 3 years ago

Fixes #24

I have added card validation before clicking on checkout button. Please review it and merge it.

Note: Below code is unused and will not affect the appearing of the modal box either. So, I removed it.

window.onload = function() {
    setTimeout(function() {
        modal.style.display = 'block';
    }, 3000);
}
function check() {
    modal.style.display = "block";
}

Thanks!