samedi 21 mars 2015

Change Json code to a url redirect



} else if (!jQuery.isEmptyObject(jsonData.data) && jsonData.data.amount) {
$(".ms-payment-form form input[name='custom']").val(jsonData.data.custom);
$(".ms-payment-form form input[name='amount']").val(jsonData.data.amount);
$(".ms-payment-form form").submit();
} else {


Hi, I want to change the above code, so instead of submitting the .ms-payment-form, it redirects to a url. I don't have coding experience, I have only ever altered other peoples coding through trial and error, so please treat me like a raw beginner. I think I need to keep the first line in .... I have tried putting in a location. redirect but it just stops the whole thing working.


Thanks in advance to anyone who helps.





Aucun commentaire:

Enregistrer un commentaire