I'm trying to use head.js but I'm dying here to make it work. Here is my code so far:
<script type="text/javascript" src="<?php echo base_url(); ?>assets/scripts/lib/head.min.js"></script>
<script type="text/javascript">
head.js("http://localhost/compra/assets/scripts/lib/jquery-1.6.1.min.js");
head.ready(function ()
{
$('#date').datepicker();
});
</script>
I have tried with head.ready() and without it but Google Chrome always returns this:
Uncaught TypeError: Property '$' of object [object DOMWindow] is not a function
The URL for the script file is correct.