title: is it possible to add multiple selectors in a delegate function in jquery?
body: <p>Something like creating a namespace/sub-module for my scripts concerning a module in my app? Like say I only want to delegate certain tasks to elements inside a certain div like say #submodule1.</p>
  
  <p>Can I do something like this:</p>
  
  <pre><code> $("#submodule1")
      .delegate(".selector1", "click", function() {} )
      .delegate(".selector2", "click", function() {} )
  </code></pre>
  
  <p>And if it is possible, will it be the same as:</p>
  
  <pre><code> $("#submodule1").delegate(".selector1", "click", function() {} )
   $("#submodule1").delegate(".selector2", "click", function() {} )
  </code></pre>
  
  <p><strong>EDIT</strong> </p>
  
  <p>based on T.J. Crowder's answer i should be able to do this:</p>
  
  <pre><code>$("#soap-test-test-cases")
    .delegate(".soap-test-case", "click", function(){
        testfunction();
    });
    .delegate("legend", "click", function() {
      alert("this is a test!");
    });
  </code></pre>
  
  <p>but i get a syntax error</p>