I try to install autoNumeric from https://www.jqueryscript.net/demo/Easy-Numbers-Currency-Formatting-Plugin-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="" type="text/css">
<link rel="stylesheet" href="" type="text/css">
<script src=""></script>
<script src=""></script>
<script src="?dt="></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 clicking on the error I see next error code:
Is it wrong way of including this library and which is valid ?
Thanks in advance!
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire