2012-07-31 59 views
0

道場:FilteringSelect來,要求: 「假」,不工作道場問題:FilteringSelect來,要求: 「假」,不工作

我的代碼結構,

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); 

任何一個可以幫助?。

謝謝!

回答

3

required屬性應爲布爾型false,而不是字符串"false"

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

謝謝你的codebox。那就對了...!! – 2012-07-31 07:14:20