jQuery ,Uncaught TypeError: $(...).autoNumeric is not a function -
i'm trying implement autonumeric jquery plugin keep getting error message in console.
uncaught typeerror: $(...).autonumeric not function
markup:
<input type="text" class="employee_annual_salary /> <script type="text/javascript" src="http://www.example.co.uk/assets/js/autonumeric.js"></script> <script type="text/javascript"> $(function() { $(".employee_annual_salary").autonumeric('init'); }); </script>
i have these scripts in header
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script> <script type="text/javascript" src="<?php echo base_url(); ?>assets/tinymce/tinymce.min.js"></script> <script type="text/javascript" src="http://www.example.co.uk/assets/js/moment.js"></script> <script type="text/javascript" src="http://www.example.co.uk/assets/js/autogrow.js"></script> <script type="text/javascript" src="http://www.example.co.uk/assets/js/jquery.elastic.source.js"></script>
how solve this?
you have jquery
, jquery-ui
loaded. don't think autonumeric
part of either of packages.
you should try downloading here or here , see if loads then.
Comments
Post a Comment