2013-07-11 120 views
1

我有一個dojo組合框。我想在更改內容時獲取組合框的值。獲取dojo組合框值

問題:我只拿到以前的變化值 例子:

組合框: 「1234」,我得到123 組合框: 「12345」,我得到1234

new dijit.form.ComboBox({intermediateChanges: false, propercase: true, autoComplete: false, hasDownArrow: "false", id: "Search", onChange: getValue, 
     queryExpr: "*${0}*", /*onBlur:FamilyNameLostFocus,*/ name: "Search", style: "width:100%"}, dojo.byId('TD_PatientSearch')); 

function getValue(){ 
    console.debug(dijit.byId('PatientSearch').getValue();); 
} 

回答