【问题标题】:operation with all inputs, without type="checkbox"所有输入的操作,没有 type="checkbox"
【发布时间】:2011-02-23 00:42:22
【问题描述】:

我想对td中的输入元素做一些操作。我用这个:

            var inputElements = $('td > input', row);

            inputElements.each(function () {

               //some operation

            });

我怎样才能去掉复选框?

【问题讨论】:

    标签: jquery html input


    【解决方案1】:

    获取每个单元格中的所有输入,除了复选框。

    var inputElements = $('td > input:not(:checkbox)', row);
    

    【讨论】:

      猜你喜欢
      • 2016-11-18
      • 2016-03-15
      • 2019-05-11
      • 1970-01-01
      • 2014-04-22
      • 2017-12-24
      • 1970-01-01
      • 2016-12-31
      • 1970-01-01
      相关资源
      最近更新 更多