rishal
Newbie
Posts: 5
|
|
« on: July 11, 2012, 06:37:24 AM » |
|
<script type='text/javascript'> $(function(){ $('#cg').combogrid({ panelWidth:350, url: 'popsupplier.php', idField:'kode', textField:'kode', mode:'remote', fitColumns:true, columns:[[ {field:'kode',title:'KODE',align:'left',width:5}, {field:'nama',title:'SUPPLIER',align:'left',width:20} ]] }); $(input[name='mode']).change(function(){ var mode = $(this).val(); $('#cg').combogrid({ mode: mode }); }); });
$(function(){ $('#cc').combogrid({ panelWidth:350, url: 'popkode.php', idField:'kodeobat', textField:'kodeobat', mode:'remote', fitColumns:true, columns:[[ {field:'kode',title:'KODE',align:'left',width:5}, {field:'nama',title:'NAMA OBAT',align:'left',width:20} ]] }); $(input[name='mode']).change(function(){ var mode = $(this).val(); $('#cc').combogrid({ mode: mode }); }); });
</script>
thanks for your help ..
|