title: check if dropdown's first option has selected attribute
body: <p>I have created a dropdown listing last 5 years from current year, current year being selected explicitly. Here is my code:</p>
  
  <pre><code>var nDate = new Date();
      var year = nDate.getFullYear();
      $('#yearddl').append('&lt;option value&gt;Select Year&lt;/option&gt;');
      for (var i = 0; i &lt;= 4; i++) {
          if (i == 0) {
              $('#yearddl').append('&lt;option selected value =' + year + '&gt;' + year + '&lt;/option&gt;');
          }
          else {
              $('#yearddl').append('&lt;option value =' + year + '&gt;' + year + '&lt;/option&gt;');
          }
  
          year = year - 1;
      }
  </code></pre>
  
  <p>Now, my requirement is that how can I check that whether first option, which would in any case be the current year, has selected attribute. Basically, I want to remove selected option from here and give it to some other option.</p>