jQuery循环给某个ID赋值

1.id名为sl的input框循环赋值

$("input[id=sl]").each(function(){

alert(this.value)
})

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