对相同id的input框的循环判断

$("input[id=sl]").each(function(){
  alert(10);
});

原文地址:https://www.cnblogs.com/xujiating/p/6268209.html