I'm using Select2 on all regular form PHP page and this is working ok.
I need to add a select2 field to an existing ajax form which is a modal php form.
I don't have much experience with Ajax so I'm not sure which value to use to replace adduser-user_division_id into the select
usually I use a variable but I don't what to do with this one
The result give me empty list
error: Notice: Undefined index: division_id
I may decide to rewrite the form to a non popup page as there will have more field to add
I will do some test and the weekend and get back with more info.