$(".tables table tbody").find("input=[type='checkbox']").each(function () {
为什么这样可以得到这个 tbody里面的所有checkbox
而我改成
$(".tables table tbody").find("input=[type='select']").each(function () {
or $(".tables table tbody").find("[type='select']").each(function () {还是不行,请问如何获取指定 一个表格下面的所有select ?
为什么这样可以得到这个 tbody里面的所有checkbox
而我改成
$(".tables table tbody").find("input=[type='select']").each(function () {
or $(".tables table tbody").find("[type='select']").each(function () {还是不行,请问如何获取指定 一个表格下面的所有select ?
$(".tables table tbody").find("input=[name='select']").each(function () {
select在源代码里是<select><option></option></select>,它并不是<input type="select" />
所以你取不到了。
$(".tables table tbody").find("select").each(function () {
尝试这个吧
$('table select') 不就行了