Line:
$('#contact-bottom').css('background' : '#3F51B5 url(' + 'img/check.png' + ') no-repeat 50% 50%'); Mistake:
Uncaught SyntaxError: missing ) after argument list The whole section of code located in Ajax:
$.ajax({ type: "POST", //Метод отправки url: "mail.php", //путь до php фаила отправителя data: form_data, success: function() { console.log("Message successfuly send"); $("#mail-button").detach(); $('#contact-bottom').css('background' : '#3F51B5 url(' + 'img/check.png' + ') no-repeat 50% 50%'); } });