$('#healthReport  input[id^='recordItem_'] ').each(function(i,n){
     $(this).remove();
});是这样逐个移除吗?

解决方案 »

  1.   

    $('#healthReport  input[id^=recordItem_] ').each(function(i,n){
         $(this).remove();
    });
      

  2.   

     $("input[id^='recordItem_']").each(function () {
                var id = $(this).attr('id');
                if (id == '收缩压@#$一般检查') { debugger; }
                if (mini.get(id) != null)
                    mini.get(id).destroy();
            });我是这样写的 不过这样不对。
      

  3.   

    $('#healthReport  input[id^=recordItem_] ').each(function(i,n){
         $(n).remove();
    });错了,不是this,是n
      

  4.   

    那个能行了,我现在又遇到一个问题  那我边有很多Input控件,我怎么循环 那些然后给那些控件做判断?
      

  5.   

    恩,弄好了,谢谢大神!  表示jquery 的确实不是很懂。