Questions tagged as 'maskmoney'

1
answer

Mask for monetary values

I wanted to create a mask for monetary values, where the person would enter and enter the scores and separations of the decimal places automatically. Ex:    $ 1       R $, 11       $ 1.10       $ 11.00       $ 110.00       $ 1,110.00...
asked by 11.11.2016 / 18:10
1
answer

maskMoney without needing to select the input

I'm using maskMoney but it only formats value if I click on input, how can I change it? Or is it formatted as soon as the page loads? $(function() { $("input").maskMoney({ allowNegative: true, thousands: '.', decimal: '...
asked by 11.07.2016 / 18:52
2
answers

maskMoney does not work in input inside table

Here I call the mask using class $(function($){ $(".dinheiro").maskMoney(); }); In the form's input it works normal, but inside table does not work. function addProd(obj) { $('#add_prod').val(''); var id = $(obj).attr('data-id'); var...
asked by 30.11.2017 / 03:53
1
answer

How to treat a decimal field with no boxes after the comma in a jquery mask mvc c #

I have a model with the following definition: [Display(Name = "Quantidade / Volume:")] public Int32 RoQuantidade { set; get; } In my View to fill in the data when empty, that is, that have not yet been written, using maskMoney work...
asked by 08.04.2016 / 19:19
1
answer

Paste Inputs with type="money"

$(function() { $("input[name*='pvn'").maskMoney({ thousands : '.', decimal : ',' }); }) I do this to get the inputs with name='pvn' and apply a mask, but I would like to apply this mask to all money fields, so I...
asked by 18.10.2016 / 16:03
1
answer

Calculate input with formatting (mascara)

I have 2 inputs, quantity and value. The input value is using the plugin Jquery MaskMoney it is configured as follows: $('.money').maskMoney( { allowNegative: true, thousands: '.', decimal: ',', affixesStay: false });...
asked by 08.02.2016 / 18:22
1
answer

Change Angular Real Mask 2

I have a field with value formatted with currency 'BRL': true: '2.0-0'. The value it brings me is this way: R $ 500,000,000. I would like to know how I can leave it as follows: 500,000,000.     
asked by 22.03.2017 / 21:36
1
answer

Problems with calculations with jquery.maskMoney

I have a javascript that makes the perfect calculation between 3 inputs. Being them. 1- COST, you get the cost of a product 2- SALE, receive the sales price, and automatically calculate the profit margin 3% PROFIT, receive the profit and auto...
asked by 15.07.2016 / 22:00
2
answers

How to format numeric data extracted from the database for monetary values?

I am using the jquery.maskMoney.js library to format system monetary data. But when the data is saved in the database and returned to the system screen the formatting is lost. How to solve this problem? I would like the formatting to remain, f...
asked by 27.08.2018 / 17:01