Я использую JavaScript и jquery.validate.min.js
для проверки полей. Во время этого процесса отображается GIF «РАБОТАЮЩИЙ», а кнопки «СОХРАНИТЬ / РЕДАКТИРОВАТЬ» скрыты. Если проверка не пройдена, экран возвращается, но кнопки сохранения и редактирования все еще скрыты, и отображается рабочий gif. Как мне снова скрыть GIF и отобразить кнопки сохранения / редактирования?
function processing() {
// if the validation process (required fields not provided) then the add/save buttons is invisible and the GIF is still running active.
// Will need to figure out how to get the required to also hide the working gif and reshow the save/cancel button
//$('.saveeditbuttons').hide();
var thisdiv = '.processingmsg';
$(thisdiv).css({ "position": "absolute", "top": "170px", left: ($(window).width() - $(thisdiv).outerWidth())/2, });
Move = $(thisdiv).detach()
$('body').append(Move);
$(thisdiv).show();
$("form").submit();
}