$.ajax({
    type: 'POST',
    url: 'https://prs.cryoliteindia.com/ajax_tool.php',
    data: 'country=1',
    success: function(html) {
        $("#country").html(html);
        $("#country_oth").html(html);
    }
});
$('#country').on('change', function() {
    //alert('4');
    var country = $(this).val();
    //alert(state);
    if (country) {
        $.ajax({
            type: 'POST',
            url: 'https://prs.cryoliteindia.com/ajax_tool.php',
            data: 'countryID=' + country,
            success: function(html) {
                $("#state").html(html);
            }
        });
    } else {
        alert('Ajax Error');
    }
});

$('#state').on('change', function() {

    var state = $(this).val();
    //alert(state);
    if (state) {
        $.ajax({
            type: 'POST',
            url: 'https://prs.cryoliteindia.com/ajax_tool.php',
            data: 'stateID=' + state,
            success: function(html) {
                $("#district").html(html);
            }
        });
    } else {
        alert('Ajax Error');
    }
});

$.ajax({

    type: 'POST',
    url: 'https://prs.cryoliteindia.com/modules/SRM_Management/ajaxpage/service_type_list.php',
    data: 'service_type=1',
    success: function(html) {
        $("#service_type").html(html);
    },
    error: function(html) {
        // alert("Status: " + html);  
        //alert("JS Load Failed");  
    }
});
$('#service_type').on('change', function() {

    var service_type = $(this).val();

    if (service_type) {
        $.ajax({
            type: 'POST',
            url: 'https://prs.cryoliteindia.com/modules/SRM_Management/ajaxpage/service_type_list.php',
            data: 'service_type_id=' + service_type,
            success: function(html) {
                $("#service_category").html(html);
            }
        });
    } else {
        alert('Ajax Error');
    }
});
$('#service_type1').on('change', function() {

    var service_type = $(this).val();

    if (service_type) {
        $.ajax({
            type: 'POST',
            url: 'https://prs.cryoliteindia.com/modules/SRM_Management/ajaxpage/service_type_list.php',
            data: 'service_type_id=' + service_type,
            success: function(html) {
                $("#service_category").html(html);
            }
        });
    } else {
        alert('Ajax Error');
    }
});