title: JQuery base64 function implementation
body: <p>I can't figure out why is not working a jquery plugin (base64 encode decode) inside an event function.    </p>
  
  <p>This way works:</p>
  
  <pre><code>  $(document).ready(function(){  
      data = $.base64Encode('something');  
      alert(data);  
    });
  </code></pre>
  
  <p>But when trying to add in an event function, I get the <strong>$.base64Encode is not a function</strong> error  </p>
  
  <pre><code>  $(document).ready(function(){  
      $('#submit').click(function(e){
        data = $.base64Encode('something');  
        alert(data); 
        e.preventDefault();
       }); 
    });
  </code></pre>
  
  <p>The Jquery plugin is found at:
  <a href="http://plugins.jquery.com/project/base64" rel="noreferrer">http://plugins.jquery.com/project/base64</a></p>