2011-04-26 25 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.

这意味着,这将是默认选择的选项在页面加载时