set json data from ajax and make it serarchable in select2 jQuery
问题 I had two drop down input fields, both are implementing Select2 Jquery. Here i set the data as static for first drop down . its works fine . As per selection of value in first drop down, next drop down will filled by another set of json data by ajax. I need to second drop down should be searchable with only once loaded the ajax data. but i am not get correctly. i not able to make it workable. i used the following scripts function format(item) { return item.name; } var data=[{"id":"1995","name