HEX
Server: Apache
System: Linux srv13.cpanelhost.cl 3.10.0-962.3.2.lve1.5.38.el7.x86_64 #1 SMP Thu Jun 18 05:28:41 EDT 2020 x86_64
User: cca63905 (4205)
PHP: 7.3.20
Disabled: NONE
Upload Files
File: /home4/cca63905/www/nueva/modules/pd_quote-master/views/js/pd_quote.js
$(function () {

    $('.btn-quote').on('click', function () {
        $('.msg').hide();
        $('.form').show();
        $('.primero').show();
        $('.segundo').hide();
        $('.tercero').hide();
        $("#pd_quote_customer_email").val('');
        $("#pd_quote_customer_phone").val('');
        $("#pd_quote_customer_description").val('');

    });
    
    $('#new-quote').on('click', function () {
        $('.msg').hide();
        $('.form').show();
        $('.primero').show();
        $('.segundo').hide();
        $('.tercero').hide();
        $("#pd_quote_customer_email").val('');
        $("#pd_quote_customer_phone").val('');
        $("#pd_quote_customer_description").val('');

    });


    $('.pd_quote_form').on('submit', function () {
        $('.primero').hide();
        $('.segundo').show();
        $.ajax({
             type: 'POST',
             url: pd_quote_url + '?ajax=1&rand=' + new Date().getTime(),
             async: true,
             cache: false,
             dataType : "json",
             data: $(this).serialize(),
             success: function(jsonData) {
                 if (jsonData['success'] == 1) {
                    $(".msg").fadeIn(1000);
                    $('.segundo').hide();
                    $('.tercero').show();
                    $('.form').hide();
                    // $('.form').fadeOut(1000);                    
    
                 }
             }
         });

        return false;
     });
    
    
});