Dojo问题:FilteringSelect,必需:" false" ,不工作

时间:2012-07-31 07:06:43

标签: javascript html autocomplete dojo

Dojo:FilteringSelect,必需:“false”,不工作

我的代码结构是,

var user_search = new FilteringSelect({
                        id: "user_search",
                        name: "user_search",
                        searchAttr: "displayName",
                        type: "text",
                        required: "false",
                        autoComplete: true, 
                        labelFunc: formatLabel,
                        labelType: "html",
                        invalidMessage: "No user found",
                        style: "width: 166px;height:28px;background-color:white"
                    }, this.user_search);

任何人都可以提供帮助吗?。

谢谢!

1 个答案:

答案 0 :(得分:3)

required属性应该是布尔false,而不是字符串"false"吗?

 ...
 type: "text",
 required: false,
 autoComplete: true, 
 ....