How to get name and get value from select box?
<p>I have a sample code:</p>

<pre><code>&lt;select name="code_id" id="code_id"&gt;
   &lt;option value="1"&gt;Code 1&lt;/option&gt;
   &lt;option value="2"&gt;Code 2&lt;/option&gt;
&lt;/select&gt;

&lt;script type="text/javascript"&gt;
jQuery(document).ready(function(){
     var code_id = this.code_id.value; // Get value
     var code_name = this...// Get code name
     alert(code_name); 
});
&lt;/script&gt;
</code></pre>

<p>How to get code name (Code 1, Code 2)</p>
