title: Opening jQuery Colorbox with ASP Button OnClick
body: <p>I am still pretty new to using jQuery to do anything, but I have had good luck with linking to Colorbox iFrames in the past.</p>
  
  <p>Right now, I am trying to link a common ASP button to open up a Colorbox window.  I have tried searching all over but I can't seem to find the exact answer I'm needing.  Here is what I have so far, which definitely doesn't work at all.</p>
  
  <pre><code> &lt;div id="openColorbox"&gt;
          &lt;asp:Button ID="NewRecordBTN" runat="server" Text="New Material Movement Request" onclick="NewRecordBTN_Click" /&gt;
   &lt;/div&gt;
  
   &lt;script type="text/javascript"&gt;
      $(document).ready(function () {
          $("#openColorbox").click(function(){
              $.colorbox({ 
                    iframe: true, 
                     width: "80%", 
                    height: "80%", 
                transition: "fade" }));
      });
  </code></pre>
  
  <p>Trying to make the jQuery .click() function watch the "openColorbox" div that I created and open on click.  I also want to point the iFrame to another URL in the process.</p>