title: Pass Select Object to function then process with jQuery
body: <p>I have several Select Objects on a page that require the same type of processing when an Option is selected. So, I'd like to pass the Select Object(s) to a common function so I only have to write the processing once. I'm doing that, on the onchange() event as follows:</p>
  
  <pre><code>&lt;select name="dropDown1" id="dropDown1" onchange="processData(this);"&gt;
  </code></pre>
  
  <p>What I'm now wondering, is how can I get the following from the Object passed as a param as such:</p>
  
  <pre><code>function processData(obj) {
      // Need to access .index(), .val() and .text() of the obj param
  }
  </code></pre>
  
  <p>Here is a complete mock-up:</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;&lt;/title&gt;
          &lt;script src="http://code.jquery.com/jquery-1.10.2.min.js"&gt;&lt;/script&gt;
          &lt;script&gt;
              function processData(obj) {
                  // Need to access .index(), .val() and .text() of the obj param
                  // Like the following: 
                  // var indx = $("select[name='dropDown1'] option:selected").index();
                  // ...
              }
          &lt;/script&gt;
      &lt;/head&gt;   
      &lt;body&gt;
          &lt;div id="container" class="container"&gt;
              &lt;select name="dropDown1" id="dropDown1" onchange="processData(this);"&gt;
                  &lt;option value="1"&gt;Red&lt;/option&gt;
                  &lt;option value="2"&gt;Green&lt;/option&gt;
                  &lt;option value="3"&gt;Blue&lt;/option&gt;
              &lt;/select&gt;
          &lt;/div&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Thanks for any guidance.</p>