Код: Выделить всё
< /code>
function disableRepeatOrder(elem, form) {
jQuery(form).submit();
var isvalid = jQuery('.jyaml-form-validate').data('validator').valid();
if (isvalid) {
jQuery(elem).attr("disabled", "disabled");
jQuery(elem).css({"opacity": 0.3});
jQuery('Order in process. Please wait
').insertAfter(elem);
}
return false;
}
Подробнее здесь: https://stackoverflow.com/questions/793 ... javascript