I have many problem regarding the following error
Option 'ajax' is not allowed for Select2
In my case, appears for select when you are using select2 version 3.5,
So you should upgrade to version 4.0 and you won't need hidden input attached to your select