dojo: Set ValidationTextBox to blur
问题 I can't make ValidationTextBox to lose focus and I can't see the method blur() either. How can I make it lose focus? 回答1: The blur() method works on dom nodes. A widget is often backed by an html template. If you look at dijit/form/templates/ValidationTextBox.html, you will see that there is a dom node which has a dojoAttachPoint containing "focusNode". Here is the code of the template on dojo 1.7, for reference : <div class="dijit dijitReset dijitInlineTable dijitLeft" id="widget_${id}" role