Add jquery built in apiwork

haha. I add jquery for default. Here, I use in my view like this

<html> <head> <?php /* add script from code.jquery.com $this->jq->get_latest(); */ //you can also load like this $this->load->js('jquery'); $this->jq->noconfilt=true //for jquery no conflit  $this->jq->get_script();  ?>  <script> <?php $this->jq->start_jq(); ?> alert("I'm jquery"); <?php $this->jq->end_jq(); ?> </script> </head> <body> </body> </html>

comments powered byDisqus