I have a system in CakePHP 3.4.5 and I am using jquery to apply mask in the fields cep, cpf, cnpj and etc.
How do I save the data without the mask?
I call Jquery in my default.ctp which is in my layout folder.
echo $this->Html->script('jquery.maskedinput.min');
I also put the mask information code below.
echo $this->Html->scriptBlock('jQuery(function($){ $("#cpf").mask("999.999.999-99"); });', array('inline' => false));
echo $this->Html->scriptBlock('jQuery(function($){ $("#cep").mask("99999-999"); });', array('inline' => false));
Thankful