0
I’m using inputmask for the mask of CEP 99999-999
and after the object is cloned, there is the duplicity of character pressed. It usually occurs when it arrives at the separator (-). Ex. If I type a ZIP code 12345-678, the value is 12345-566, after the separator, the values are duplicated. If I delete the characters and start typing again, the values are 11223-344.
Basically the code I’m using to duplicate the field is:
$('#clonar').click(function(){
$(this).parent().find('.cep').clone(true).appendTo('#ceps').val('');
});
I made a jsfiddle with the example. To run the 'problem' just type any zip code, click on clone, and then type the zip code to see the duplicity.
Could someone help me on this issue?
Thanks for the help Sam, it worked properly. Thanks
– Fabio Souza