title: Ajax div click event
body: <p>This is a two-step code. The user should click like and then the click continue to proceed. However, i can;t get the div event to work. The like button is in-between a div called postos. If something is clicked between this div it should make thanks.php accessible. </p>
  
  <p>also tried this
      </p>
  
  <pre><code>&lt;script type="text/javascript" charset="utf-8"&gt;  
  
  
  $(document).ready(function () {
    $("#postos").click(function () {
      $("#linkos").attr('href', 'thanks.php');
    });
  });
  
  
   &lt;/script&gt;  
  
  &lt;script src="http://code.jquery.com/jquery-1.5.1.min.js"&gt;&lt;/script&gt; 
  
  
  
          &lt;div id="fb-root"&gt;&lt;/div&gt;
          &lt;script&gt;(function(d, s, id) {
              var js, fjs = d.getElementsByTagName(s)[0];
              if (d.getElementById(id)) {return;}
              js = d.createElement(s); js.id = id;
              js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
              fjs.parentNode.insertBefore(js, fjs);
          }(document, 'script', 'facebook-jssdk'));&lt;/script&gt;
  
          &lt;div class="fb-like"&gt;
  
  &lt;div id="postos"&gt;
  &lt;div class="fb-like" data-send="true" url="http://tehcplz.org" data-width="450" data-show-faces="true"&gt;&lt;/div&gt;
  &lt;/div&gt;
  
  
  &lt;br&gt;&lt;br&gt;
  
  &lt;p&gt;Continue &lt;a id="linkos" href='javascript:window.alert("like us");'&gt; &lt;br/&gt;Click to continue &lt;/a&gt;
  &lt;br&gt;
  &lt;/p&gt;
  </code></pre>