Tuesday, 12 February 2013

Reference Error: $ is Not Defined

Javascript Reference Error: $ is Not Defined:


        If you are using javascript in your php or html file then include JS file with the php or html page like below...

For php with codeigniter Framework:

 "<script type="text/javascript" src="<?php echo base_url(). 'public/jquery.js'; ?>"></script>"

For HTML:

 "<script type="text/javascript" src="public/jquery.js"></script>"

No comments:

Post a Comment