title: How to fetch name from select tag using jquery
body: <p>I have created a number of select tags. Every tag is differed by their name.
  So when I do submit the form, I need to get the name of the select tag using jquery.</p>
  
  <pre><code>&lt;select class="myclass" id="" name="AP"&gt;
  &lt;option value=""&gt;Select Val&lt;/option&gt;
     &lt;option value="50"&gt;50&lt;/option&gt;
     &lt;option value="60"&gt;60&lt;/option&gt;
  &lt;/select&gt;
  
  var getSelect = $('.compressor option:selected');
  console.log(getSelect.name);
  </code></pre>
  
  <p>I didn't the same for the input field it is working. When I kept my name in options it is working fine. But I don't want to keep my name attr in options.</p>