title: To get the text of the selected item in the dropdown list in java script
body: <p>I want to get the text of the selected item in the drop down list. I tried the following code </p>
  
  <pre><code>var e = document.getElementById("ddlTime.ClientID");  
  var selectedTime = e.options[e.selectedIndex].text;
  </code></pre>
  
  <p>but it gives me "Unable to get value of the property 'options': object is null or undefined"</p>
  
  <p>can any one please help me out with this ?</p>