<br />
<div class="searchrt">
<form id="formrt1" action="/moni/<?php echo $balik; ?>/<?php echo $getkd; ?>" method="post">
    <div class="row">
        <div class="col-sm-4">
                <input type="hidden" name="<?= csrf_token() ?>" value="<?= csrf_hash() ?>" />
                <input id="t" name='t' prompt="<?php echo $balik == '0' ? 'Tujuan Mudik' : 'Titik Keberangkatan'; ?>" class="easyui-combobox" data-options="
                label:'',
                queryParams: {'<?php echo csrf_token() ?>': '<?php echo csrf_hash() ?>','balik':'<?php echo $balik; ?>','getkd':'<?php echo $getkd; ?>'},
                labelPosition:'left',
                labelWidth:'10px',
                editable:true,
                value:'<?php echo $t; ?>',
                width:'100%',
                panelHeight:'auto',
                valueField: 'wilayah_id',
                textField: 'nama',
                url: '/tujuancombo',
                onSelect: function(rec){
                    console.log(rec);
                var url = '/armadacombo/'+rec.wilayah_id;
                $('#ar').combobox('reload', url);}
                ">
        </div>

        <div class="col-sm-5">
            <input name="ar" id="ar" prompt="Daftar Armada" class="easyui-combobox" data-options="
                label:'',
                queryParams: {'<?php echo csrf_token() ?>': '<?php echo csrf_hash() ?>'},
                labelPosition:'left',
                labelWidth:'10px',
                editable:false,
                value:'<?php echo $ar; ?>',
                width:'100%',
                panelHeight:'auto',
                valueField: 'armada_id',
                textField: 'nama'
                ">
        </div>

        <div class="col-sm-3">
            <a href="#" class="easyui-linkbutton" plain="true" style="text-align:right;margin-top:0px;" onclick="clear_cari()">Clear</a>
            <input type="submit" value="&nbsp;&nbsp;Cari&nbsp;&nbsp;" style="width:50%;border-radius:5px;">

        </div>
    </div>
    </form>
</div>

<script>
    function clear_cari() {
        $('#t').combobox('clear');
        $('#ar').combobox('clear');
    }

    function armadaku(w)
    {
        alert(w);
    }
</script>