I have a module on my Cms that works very well with the jquery 1.7.1 but not works (nothing happens when i click on the button) with the jquery 2.1.1.
I send you the code below :
$.ajax({
url: 'index.php?route=checkout/shipping_method/givemr&ismr=1',
type: 'post',
data: $('#mr_cp_search, #mr_pays_search'),
dataType: 'json',
success: function(json) {
$('.warning').remove();
if (json['redirect']) {
location = json['redirect'];
}
if (json['output']) {
$('#resultats_pt_relais').html(json['output']);
}
}
});
I am not good at jquery so can you tell me if something has changed between the 2 versions.
Thanks for your help.
Alex
I have tried to modify the module but it does not work.
Can anobody tell me if there is a syntax error that bug on the jquery 2.1.1
alex57580 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.