0
是否有可能在jQuery选择器中使用AND运算符?我的要求是,我有一个隐藏在li标签中的输入字段。这个李会根据一些操作隐藏起来。在另一个按钮中单击我需要查找隐藏的输入值,这些隐藏的输入在li和li标签中,风格不等于隐藏。jquery选择器帮助
要做到这一点我做
$(":input[class^=StoreID]").each(function (k) {
if ($(this).parent().attr("style") != "display: none;") {
storeID[k] = $(this).attr("value");
}
});
可这在选择本身进行修改?
$(":input[class^=StoreID]").parent().not('.hidden').each(function(k){.......etc});
有什么建议吗?
由于现在是工作的罚款.didt之前了解可见选择。 – Bumble 2011-06-17 10:48:57