title: Open a hidden div in a lightbox with Mootools in Joomla 1.5
body: <p>I am using Joomla 1.5.22 with Mootools 1.1. I have a module with a form contained in a hidden div that I want to open in Joomla's built in modal box. The problem I have is that when I click the link the form opens in the modal box, but it also opens the div in the module on the page.</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;div id="moduleBox"&gt;
      &lt;div id="clickMeButton"&gt;&lt;a id="formClick" class="modal" href="#hiddenForm"&gt;Click me&lt;/a&gt;&lt;/div&gt;
      &lt;div id="hiddenForm"&gt;
       form code goes here
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Javascript:</p>
  
  <pre><code>window.addEvent('domready', function() {
    $('formClick').addEvent('click', function(){
      $('hiddenForm').setStyle('display','block');
    });
  });
  </code></pre>
  
  <p>So how do I get the form to only show up in the modal box?</p>
  
  <p>You can see what I am talking about here - <a href="http://www.internextion.com/" rel="nofollow">http://www.internextion.com/</a></p>
  
  <p>It's the Call Back Module. I already added the     handler: 'adopt' as suggested below, now the result is a little different. The target div still shows up below the link, but now the modal window contains the link rather than the target.</p>