How do I include jQuery file in CodeIgniter? -



How do I include jQuery file in CodeIgniter? -

i utilize jquery within codeingiter project. dont know how include js file.

i have below in view

<script src='<?php echo base_url().apppath ?>js/jquery.js'></script> <script src='<?php echo base_url().apppath ?>js/my-js.js'></script>

firstly, create folder set in. utilize template scheme this one.

this lets add together js files either globally in main template, or controller/function basis using syntax $this->template->add_js('assets/js/jquery.js');

jquery codeigniter

Comments

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

How do I check if an insert was successful with MySQLdb in Python? -