I search Jquery 3 / Bootstrap 4.1 library to input money in valid format

Hello !
Can you advice some Jquery 3 library/plugin compatible with Bootstrap 4.1 for formatting of input for entering money in valid format(with decmals, thouthand separator etc…) and not permitting to enter invalid chars ?

Thanks!

Well i cant swear to it’s efficacy or interactability, but a simple google search tells me that there is a jquery script called ‘autoNumeric’ that should do what you want.

1 Like

Here’s some example bootstrap code that looks like it’ll do the job too.

here i share you some ref url’s you can check that. i hope you issue will resolve.

Thank you for feebbacks!
I try to install autoNumeric in my laravel 5.7/ blade / jQuery v3.3.1 / Bootstrap v4.1.2 app and for this in my blade form where I want to use autoNumeric
I included ref to AutoNumeric.js file:

...
@endsection

@section('scripts')

	<link rel="stylesheet" href="{{ asset('/css/select2.min.css') }}" type="text/css">
	<link rel="stylesheet" href="{{ asset('/css/select2-bootstrap.min.css') }}" type="text/css">
	<script src="{{ asset('js/select2.full.min.js') }}"></script>

	<script src="{{ asset('js/AutoNumeric/AutoNumeric.js') }}"></script>

	<script src="{{ asset('js/formfile.js') }}{{  "?dt=".time()  }}"></script>
...

I uploaded 8 files into /public/js/AutoNumeric subdirectory from /autoNumeric-master/src of uploaded zip file

and when jquery is inited I added line :
$('#selling_range').autoNumeric('init');

and I got error :
Uncaught SyntaxError: Unexpected identifier

and cliking on the error I see next error code:

Also I tried to to modify declarations as :
new AutoNumeric( '#selling_range', null );

I got the same error…

Is it wrong way of including this library and which is valid ?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.