0
I’m using the input-maks
to put a mask on the field but I’m having the difficulty of setting a value, for example in my mask I put
'data-mask'=>"00000,00"
referente ao campo decimal(5,2);
But if I want to put pennies like 50
, I need to do 00000.50. Another example if I want to place 25.99 I need to place 00025.99. In case I force to put the comma before the field by default erases and don’t let me write.
I’m using blade
for creation of the text field
{{ Form::text( 'VAL_ESTOQ_PRODU', null,['class' => 'form-control input-mask', 'data-mask'=>"00000,00", 'placeholder'=>"00000,00", 'maxlength'=>"8", 'autocomplete'=>"off" ]) }}
How can I fix this ?
The puglin I’m wearing was made by:
/**
* jquery.mask.js
* @version: v1.5.3
* @author: Igor Escobar
*
* Created by Igor Escobar on 2012-03-10. Please report any bug at http://blog.igorescobar.com
*
* Copyright (c) 2012 Igor Escobar http://blog.igorescobar.com
*
**/
I have no idea what package you’re using, but it wouldn’t be just
,00
to Mask?– gmsantos
putting it only Usario ,99; then in case of doing 115,00 would not give
– Renan Rodrigues
@gmsantos doesn’t really know which one I’m using, but if you understand what I want and want to indicate some
– Renan Rodrigues
Your question is unclear, but it’s not related to Blade. I recommend editing your question along with the tags and searching on the lib in jquery q vc is using
– gmsantos