jQuery(function($) {
$(document).ready(function(){
$('#mySelect').on( 'change' , function(){
var newValue = $(this).val();
$.ajax({
type: 'POST',
url: ajax_params.ajax_url,
dataType: 'json',
data: {
action: 'yourFunction',
newValue: newValue
},
success: function(response) {
console.log(response);
},
error: function(errorThrown){
console.log(errorThrown);
}
})
})
})
});