checkoutprocessor.php', data: dataString, success: function(data){ $("#btnSubmit").attr("disabled",false).text('Add to Cart'); $('.CheckoutResponse').html(data); } }); } else{ var books = $('#option'); var selectednow = books.val(); if (typeof selectednow != 'undefined' && selectednow) { var dataString = $("#pricesection").serialize(); $("#btnSubmit").attr("disabled",true).text('Please Wait....'); $.ajax({ type:'POST', url:'https://mail.chrisvicmall.com/dashboard/checkoutprocessor.php', data: dataString, success: function(data){ $("#btnSubmit").attr("disabled",false).text('Add to Cart'); $('.CheckoutResponse').html(data); } }); } else{ alert("Please select product option from the list and then proceed!"); $('#option').focus(); return false; } }; }