Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<script type="application/javascript">
var dte_fields = function() {
if ($("#order_other_boleta_o_factura").val().includes("Boleta")) {
$("#other_giro,#other_razon_social").hide();
$("#other_giro,#other_razon_social").removeAttr("required");
} else {
$("#other_giro,#other_razon_social").show();
$("#other_giro,#other_razon_social").attr("required", "required");
}
}
$("#order_other_boleta_o_factura").change(dte_fields)
$(document).ready(dte_fields);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.