EasyUI Forum
October 11, 2025, 03:40:04 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to make onChange in Textbox  (Read 6606 times)
deib97
Newbie
*
Posts: 9


View Profile Email
« on: March 07, 2017, 12:22:53 AM »

How to make onChange in Textbox but with query like show data in url combogrid, so render data in Textbox?
This my code but with combogrid. Please help me..
Code:
$('#idpo_customer').combogrid({
panelWidth:550,
                                width:250,
url: 'template/json/combogrid/cb_pocustomer.php',
idField:'idpocustomer',
textField:'nopo',
mode:'remote',
                                fitColumns:true,
columns:[[
                                        {field:'idpocustomer',title:'idpocustomer',align:'left',width:350,hidden:true},
                                        {field:'nopo',title:'No.PO',align:'left',width:350},
{field:'tglpo',title:'Tgl. PO',align:'left',width:200},
                                        {field:'nama_customer',title:'Customer',align:'left',width:450},
                                        {field:'keterangan',title:'Keterangan',align:'left',width:300}
]],
                           
                            onChange:function(newValue,oldValue){ 
                                  $('#no_ppbj').combogrid({
                                            panelWidth:200,
                                            width:200,
                                            url: 'template/json/combogrid/cb_noppbj.php?idpocustomer='+newValue,
                                            idField:'kode_customer',
                                            textField:'kode_customer',
                                            mode:'remote',
                                            fitColumns:true,
                                            columns:[[
                                            {field:'kode_customer',title:'No.PPBJ',align:'left',width:160},
                                            ]],
                                    });
                                }
                               
            });

Code:
<input name="idpo_customer" id="idpo_customer" class="easyui-validatebox" data-options="required: true, width: 200, prompt: 'prompt1...'" autocomplete="off"/>
<input name='no_ppbj' id='no_ppbj' style="width: 200;" class="easyui-validatebox" required="true" autocomplete="off"/>
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!