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
var sel_val = apex.item("P2_TYPES").getValue();
but it did not return the selected value
also tried using $x('P2_TYPES')
but still unsuccessful - returns false
How can I retrieve a selected value of a select list from a dynamic action?