If I open Colorbox in CodeIgniter its shows multiple time after click on search button
<p><strong>index.php</strong></p>

<p>here I call <code>div</code>:</p>

<pre><code>&lt;div id="dd"&gt;
 &lt;?php
   $this-&gt;load-&gt;view('indexresult');
  ?&gt;
&lt;/div&gt; 
</code></pre>

<p><strong>indexresult.php</strong></p>

<p>here I get the <code>id</code> from <code>click</code> on <code>href</code>. After it I have <code>post</code> and <code>put</code> in <code>session</code>. After back I have load <code>div</code></p>

<pre><code>$('#category li a').click(function() 
{
  var SearchId = $(this).attr('id');
  $('#loading-image').show();
  $.post("&lt;?php echo site_url('AllResult');?&gt;",{SearchId:SearchId},function(data)
  {
    $("#dd").load('home/indexresult');       
  });   
});

$(document).ready(function(){
  $(".ajax").colorbox();
  $(".Login").colorbox({innerWidth: "500px",innerHeight: 320px",initialWidth:              false,initialHeight: false});
  $(".mapajax").colorbox({});
  $(".register").colorbox({initialWidth: false,initialHeight: false});
});
</code></pre>

<p>using class="Login", it open login color box.</p>

<pre><code>&lt;a href = "&lt;?php echo site_url('home/loginpopup')?&gt;" class="Login"&gt;Login&lt;/a&gt;
</code></pre>

<p>First time Colorbox open  it works ok, but after <code>click</code> on search it open multiple Colorbox Instaces.</p>
