title: oracle apex get a selected value of a select list via javascript
body: <p>I have a select list on my page and I created a dynamic action on the list to execute some javascript based on selected value. I tried using</p>
  
  <pre><code>var sel_val = apex.item("P2_TYPES").getValue();
  </code></pre>
  
  <p>but it did not return the selected value</p>
  
  <p>also tried using <code>$x('P2_TYPES')</code> but still unsuccessful - returns <code>false</code></p>
  
  <p>How can I retrieve a selected value of a select list from a dynamic action?</p>