dynamic dropdown, data persist and change field from disabled to enabled
I'm having a little problem trying to accomplish this:
1- the user select an item from a dynamic dropdown menu 1 (ok)
2- the dropdown menu 2 is populated by array (ok)
3- if the user select a specific item in the dropdown menu 2, a third field (set as disabled by default) should change to enabled (ok; I used a bit of jquery)
4- if validation fails, all selected data should be preserved (KO)
I already applied all persist data bindings, and when the page is submitted I get:
1- the user selected dropdown is ok (it uses persisting data) (ok)
2- the dropdown menu 2 loads the first option, not the persisting one
3- the disabled field is still disabled because the dropdown menu 2 is reset to the first option
4- same as before: only the first dropdown menu preserve selected data
How can I solve this?
I attached the page, just in case you can help me.