Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('.uk_form_post_02').submit(function(event) {
- var data = $(this).serialize();
- $.ajax({
- type: "POST",
- url: "/local/ajax/zayavka_arenda.php",
- data: data
- }).done(function( msg ) {
- if(msg == 'OK') {
- $('.detail_done_02').css('display', 'block');
- $('.detail_error_02').css('display', 'none');
- setTimeout(function() {
- console.log(msg);
- }, 3000)
- } else {
- $('.detail_done_02').css('display', 'none');
- $('.detail_error_02').css('display', 'block');
- setTimeout(function() {
- console.log(msg);
- }, 3000)
- }
- });
- return false;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement