dojo.forEach(["old","new","verify"], function(i){ widgets.push(dojo.query("input[pwType=" + i + "]", this.containerNode)[0]); }, this); dojo.query("input[data-dojo-password-type=" + i + "]")
var theDiv = dojo.create("div", {id: "sample"}), theNewPass = dojo.create("input", {type: "password", pwType: "new"}, theDiv, "last"), theVerifPass = dojo.create("input", {type: "password", pwType: "verify"}, theDiv, "last"), a = new dojox.form.PasswordValidation({}, "sample") ;