I'm new to Jquery and i've been working on a checkout form. I've placed a check box " Shipping address different from billing address? " and upon checkbox checked the fields are set to empty using the following code.
$(document).on('change', '#ship_to_different_address', function() {
if(this.checked) {
$("#fname").val("");
$("#lname").val("");
$('#shipping_company').val("");
this.checked = true;
}else{
//What to write here to fetch old values?
}
});
I'm using Laravel framework. Please guide.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2pisFUE
via IFTTT
Aucun commentaire:
Enregistrer un commentaire