title: How to change a div when user click on Twitter Follow button @anywhere
body: <p>I am looking to change a DIV when I know a user is following me.
  I cant get the code to fire the alerts.<br>
  The follow button does show up, but after i click and follow, nothing happens.</p>
  
  <pre><code>twttr.anywhere(function (T) {
      T("#followplaceholder").followButton('twitterapi');
      function follow(){
          T.currentUser.isFollowing('twitterapi'), function(e){
              if (e == true){
                  alert("following");
              } else {
                   alert("not following");
              }
          }; 
      }                                                             
  });
  </code></pre>
  
  <p>Any help would be great!</p>
  
  <hr>
  
  <p>Here is the code i am trying to use now.  Where do i call the function to get it fired? Or should i just take the function part out?</p>
  
  <pre><code>twttr.anywhere(function (T) {
      T("#followplaceholder").followButton('twitterapi');
      function follow(){
          T.currentUser.isFollowing('twitterapi'), function(e){
              if (e == true){
                  alert("following");
              } else {
                   alert("not following");
              }
          }; 
      }                                                             
  });
  </code></pre>