title: Adding classname to Colorbox dynamically
body: <p>I've seen questions regarding this issue on here already, but I'm having a different issue trying to get it to work.</p>
  
  <p>With the following code I want to add a classname to the colorbox lightbox once it has opened.</p>
  
  <p>For some reason though the second function (where .addclass is executed) does not work (when I inspect the code in firebug it doesn't even enter that function).</p>
  
  <pre><code>        $(document).ready(function(){
              $(".box1").colorbox(function(){
                  $("#colorbox").addClass("box1");
              });
          });
  </code></pre>
  
  <p>Is it something I'm missing or am I trying to do this incorrectly?</p>
  
  <p>Thanks Ian</p>