Če še kdo išče kar priporoča LouD - gledam in poslušam
$( document ).ready(function() {
$('select[, input[name="quantity"]').change(function(){
$.ajax({
url: 'index.php?route=product/product/getRecurringDescription',
type: 'post',
data: $('input[name=\'productid\'], input[name=\'quantity\'], select[name=\'recurringid\']'),
dataType: 'json',
beforeSend: function() {
$('#recurring-description').html('');
},
success: function(json) {
$('.alert, .text-danger').remove();
if (json['success']) {
$('#recurring-description').html(json['success']);
}
}
});
});
});
Loud, si takole mislil? (moj del je ojačan) Tole namreč še vedno javlja napako, verjetno moram prešteti oklepaje :)]()