Ext 表单与输入控件 下拉框

1,需要引入的

<link rel="stylesheet" type="text/css" href="../../ext-3.2.1/resources/css/ext-all.css"/>

<script type="text/javascript" src="../../ext-3.2.1/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="../../ext-3.2.1/ext-all.js"></script>

2.js

<script type="text/javascript">
     
   Ext.onReady(function(){
   
    var combo = new Ext.form.ComboBox({
    
     emptyText:'请选择',
     mode:'local',
     width:100,
     triggerAction:'all',   
     transform:'workTypeName'  //下拉框id
    
    });
   
   });
   </script>

<select id="workTypeName" >
       <option value="_">--请选择--</option>
       <option value=""></option>

  </select>

 

你可能感兴趣的:(Ext 表单与输入控件 下拉框)