$(document).ready(function (){
    $("#sec").change(function (){
        let inputValue = $("#sec option:selected").val();
        var url = "data/tipi.php";
        var data = {
            sehirsearch: "search",
            altid: inputValue
        }
        $.post(url, data, function(response){
            $('#altdiv').html(response);
            $('#ustdiv').html(response);
        });
    });
});