plentz / jquery-maskmoney

jQuery plugin to mask data entry in the input text in the form of money (currency).

Home Page:https://plentz.github.io/jquery-maskmoney/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cant input thousand separator as integer

KevinFernandaN opened this issue · comments

hello im really new to jquery and laravel, and i've been trying to inputing an money value like 500.000, the thousand separator was working well but there was problem like :

my input type is text and i've convert it into int like this :

input type :
<input type="text" name="nett_budget" id="nett_budget_edit" class="form-control" autocomplete="off">

controller :
$insert['nett_budget'] = intval($request->get('nett_budget'));

and here is the index.php maskmoney :
$('#nett_budget_edit').maskMoney();

when the data is being sent to database and the only number that being catch is 500. Is there something that can be done to fix the problem, again thank you for your time and sorry for the trouble.