<input type="text" name="AKB069" class="cutpayment" hidden="true" value="0">
var cutpaylength=$(".cutpayment").length;
for(var i=0;i<cutpaylength;i++){
cutpaylist[i].hidden=false;
}
var cutpaylist=$(".cutpayment");
for(var i=0;i<cutpaylength;i++){
console.log("cutpaylist"+i+"的value==="+cutpaylist[i].value);
var element=cutpaylist[i].value;
if(element!="0")&&(element!="")){
//记录不为0且不为空时
//业务代码
}
}
jquery类选择器及其遍历
最新推荐文章于 2024-07-19 03:08:33 发布