I found a problem with dynamic reading from input hidden.
To better explain my problem I will describe the process:
1. user clicks a "select employer" link which opens dialog
2. dialog is to select proper employer, which id is send back to rjs
3. rjs sets a <input type='hidden' id='employer_id'
name='employer_id'> with the proper value
4. user clicks other link, which sends the employer_id taken from
So, for the first time the step 4 gives a proper value od employer_id.
But if I do the procedure once again (I select different emplyer_id)
the step 4 is giving me the same employer value, as at the beginning
(in first iteration).
Using FireBug I can check, that the input hidden is having good values
any time I'm doing the procedure. Only reading from $F('employer_id')
is still the same (not changed).