[eluser]Unknown[/eluser]
Guys...i am a problem in implementing jquery in CI
i have a controller main.php as
class Main extends CI_Controller{
public function __construct()
{
parent::__construct();
}
public function index()
{
$this->load->view('page/index.php');
}
}
and view i.e page/index.php as
<html>
<head>
<link href="<?php echo base_url();?>js/jquery.js" type="text/javascript" />
<style type="text/css">
#box{
background:#F00;
height:100px;
width:100px;
}
</style>
[removed]
$(function(){ $('a').click(function(){$('#box').fadeOut('slow');
});
});
[removed]
</head>
<body>
<div id="box"></div>
<a href="#">Click here</a>
</body>
</html>
i have my jquery library in root jquery folder...
it doesnot show any response..help me guys plzz