javascript - Getting dojo comboBox value -


i have dojo combobox. want value of combobox when content being changed.

problem: previous changed value example:

combobox: "1234" 123 combobox: "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();); } 

you need set intermediatechanges: true if want use functionality.

check out here further information : http://davidwalsh.name/dijit-intermediatechanges

regards, miriam


Comments