1) Add a static ID to the region you want to change, this helps the jQuery selector identify the component to change. I set mine to edit_emp
var orig = "x";
|Dynamic Action definition|
As I suggested in point 2, this comparison of orig is a little clunky, I welcome suggestions to make it more elegant (besides just defining your own text from scratch).
if (orig == "x") orig = $('#edit_emp h1').text(); $('#edit_emp h1').text(orig + ' (' + $('#P6_DEPTNO option:selected').text() + ')');The second part extents the original region text with whatever you like - in my case I take the label of the value chosen in the select list.
This is demonstrated in my sample application.