Welcome Guest, Not a member yet? Register   Sign In
simple jquery in CI
#1

[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>
&lt;/body&gt;
&lt;/html&gt;
i have my jquery library in root jquery folder...
it doesnot show any response..help me guys plzz


Messages In This Thread
simple jquery in CI - by El Forum - 03-03-2012, 03:37 AM
simple jquery in CI - by El Forum - 03-03-2012, 05:51 AM
simple jquery in CI - by El Forum - 03-03-2012, 07:07 AM
simple jquery in CI - by El Forum - 03-03-2012, 09:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB