Изменить параметры URL-адреса загрузки Selectize ⇐ Jquery
-
Anonymous
Изменить параметры URL-адреса загрузки Selectize
selectize({ valueField: 'Id', labelField: 'Name', searchField: 'Name', load: function (query, callback) { $.ajax({ url: '/some_url/params?SOME_ID=4&keyword=' + encodeURIComponent(query), success: function (response) {} }); } }); in the above snippet, is it possible to change the value of SOME_ID in request params based on some event
without destroying are re initializing the whole input ?
thanks in advance
the only solution i found was to destroy and re initialize the input, but am looking for a better approach
Источник: https://stackoverflow.com/questions/780 ... parameters
selectize({ valueField: 'Id', labelField: 'Name', searchField: 'Name', load: function (query, callback) { $.ajax({ url: '/some_url/params?SOME_ID=4&keyword=' + encodeURIComponent(query), success: function (response) {} }); } }); in the above snippet, is it possible to change the value of SOME_ID in request params based on some event
without destroying are re initializing the whole input ?
thanks in advance
the only solution i found was to destroy and re initialize the input, but am looking for a better approach
Источник: https://stackoverflow.com/questions/780 ... parameters
Мобильная версия