title: I want to call a JavaScript function when i select a specific list item from a drop down list
body: <p>I have tried the following in SelectedIndexChanged method:</p>
  
  <pre><code>if(ddl.SelectedValue == "option"){
      myFunc();
  }
  
  if(ddl.SelectedValue == "option"){
      Page.ClientScript.RegisterStartupScript(this.GetType(),"CallMyFunction","myFunc()",true);
  }
  </code></pre>
  
  <p>Second method gave me a function undefined error</p>