【发布时间】:2014-02-26 04:19:54
【问题描述】:
通过点击 promotion_image_category_ids 选择我希望选择每个对应的 optgroup subcategory_ids
到目前为止,尝试通过迭代每个 #select 来获取 select 中的当前选项,如下所示:
var selecting = $("#myhtml #selects")
selecting.find("#promotion_image_category_ids").change(function() {
console.log($(this).text());
});
【问题讨论】:
-
您只能在选择元素上选择 1 个选项。这个问题似乎全错了。