function change_tag(url){
$('.filter_button_confirm').unbind('click').on('click', function(){
...
console.log(url);
$.ajax({
url: url,
type: 'POST',
data: {
...
},
beforeSend: function(){
...
}
})
.done(function(data){
...
})
});
};
When I call the function with argument change_tag('/some_url/') of course it works.
But, change_tag() also works perfectly.
It brings data from the url that I set in the past.
console.log(url) shows 'undefined' so I don't know how it knows the url.
urlis given?urlglobally?