2011-04-26 41 views
0

我正在使用JQuery UI多選框。jquery ui - 顯示多選部件上的選定選項

如果我訪問盒這樣

category = $("#edit_category").val(); 

我看到它有一個值已經在那裏。我希望這個值從一開始就是可見的。我在某處讀到將多重選擇的「選項標籤」從「選定」設置爲「選定」會很有用......我不確定這意味着什麼。

想法?

回答

1

I read somewhere that it'd be useful to set the "option tag" of the multiselect from "selected" to "selected"... I'm not sure what this means.

這意味着,這將是默認選擇的選項在頁面加載時