When comparing init_value with fetched data the var type may have changed due to html.val() assignment (always string), so it will never match the previously selected option. Using only == will fix this issue.
Didn't check yet if the same issues applies to the many-to-many script.
When comparing init_value with fetched data the var type may have changed due to html.val() assignment (always string), so it will never match the previously selected option. Using only == will fix this issue.
Didn't check yet if the same issues applies to the many-to-many script.