使用jquery CascadingDropDown和jquery selectbox
如何将jquery CascadingDropDown与jquery selectbox一起使用 要将jquery CascadingDropDown与jquery selectbox插件一起使用,您需要在级联下拉列表中加载和重置事件后分离并附加: 在jquery.cascadingDropDown.js中进行以下更改:使用jquery CascadingDropDown和jquery selectbox,jquery,cascadingdropdown,jquery-selectbox,Jquery,Cascadingdropdown,Jquery Selectbox,如何将jquery CascadingDropDown与jquery selectbox一起使用 要将jquery CascadingDropDown与jquery selectbox插件一起使用,您需要在级联下拉列表中加载和重置事件后分离并附加: 在jquery.cascadingDropDown.js中进行以下更改: reset: function () { methods.clearItems(); $this.append($(optionTag) .at
reset: function () {
methods.clearItems();
$this.append($(optionTag)
.attr("value", "")
.text(config.promptText));
$this.trigger('change');
if ($this.attr('sb') != undefined) {
$this.selectbox('detach');
$this.selectbox('attach');
}
},
及
希望能有所帮助我知道你问这个问题是为了自己回答,但你仍然需要写一些其他人可以回答的问题。事实上,你的问题太模糊了,没有任何“你尝试过什么”的代码来告诉我们你需要什么。
loaded: function () {
$this.removeAttr("disabled");
$this.trigger('change');
if ($this.attr('sb') != undefined) {
$this.selectbox('detach');
$this.selectbox('attach');
}
},