-2
Hello I’m having a problem with the zip code. When publish the Zip Code that had 0 was thrown wrong. Example: 03359005 was released 3359005. Within a span with cep class.
<span class="cep">3358140</span>
I’d like to know if you can automatically fill in a javascript, auto fill in the eight numbers with 0 to the left. Note: I already use the mask to put the stitch and trace:
<script type="text/javascript">
$(document).ready(function () {
var $seuCampofone = $(".cep");
$seuCampofone.mask('000.00-000');
});
</script>
I suggest trying to explain the problem better. How is this cep being set, ie, where is it coming from? Or is it static? Is this mask in the span? What library is being used to make this mask?
– Marciel Leal
PS: this is not the mask that is usually used in ceps. In general we use: 00.000-00, or simpler: 00000-000
– Marciel Leal