在没有类型=“复选框"的情况下使用所有输入进行操作. [英] operation with all inputs, without type="checkbox"
本文介绍了在没有类型=“复选框"的情况下使用所有输入进行操作.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想对 td 中的输入元素进行一些操作.我曾经这样:
I want to do some operation with input elements in td. I used for this:
var inputElements = $('td > input', row);
inputElements.each(function () {
//some operation
});
除复选框外,我该怎么办?
How can I except checkboxes?
推荐答案
获取每个单元格中的所有输入,除复选框.
Get all inputs in each cell, except checkboxes.
var inputElements = $('td > input:not(:checkbox)', row);
这篇关于在没有类型=“复选框"的情况下使用所有输入进行操作.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文