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

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -