How can i call a function inside onChange of selectize?
onChange: function(value){
weatherWidget(value)
}
$(document).ready(function() {
function weatherWidget(location){
console.log('test');
}
}
this code gives me not defined function. Thank you