title: JQuery Plugin Defaults and Options
body: <p>How can I turn the following properties / variables in my plugin into defaults and options that can be set from document ready?</p>
  
  <p><strong>// plugin js:</strong></p>
  
  <pre><code>(function($){
     $.fn.myPlugin = function(options){
        var myForm = this;
        myForm.variable1 = true;
        myForm.variable2 = true;
        myForm.variable3 = true;
        myForm.variable4 = true;
  
        ...
  
        if(myForm.variable1){
           // do something
        }
  
        ...
     }
  })(jQuery);
  </code></pre>
  
  <p><strong>// document ready in page:</strong></p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
     $(document).ready(function() {
        $('#form1').myPlugin();
     });
  &lt;/script&gt;
  </code></pre>