Alejandro Troncoso
2019-10-09T08:55:54Z

ShowHide Giro - Razon Social - Jumpseller Invoicing.js

| var selectName = "order_other_boleta_o_factura"
|
| function validateFactura(){
| if( $("#" + selectName ).val() == "factura" ) {
| $("#other_giro,#other_razon_social").show();
| $("#order_other_giro,#order_other_razon_social").attr('required','required');
| } else {
| $("#other_giro,#other_razon_social").hide();
| $("#order_other_giro,#order_other_razon_social").removeAttr('required');
| }
| }
|
| $("#order_other_boleta_o_factura").change(validateFactura);
|
| $(document).ready(validateFactura);