Home  >  Article  >  Web Front-end  >  jquery gets the values ​​of columns 3 and 4 of the checked row_jquery

jquery gets the values ​​of columns 3 and 4 of the checked row_jquery

WBOY
WBOYOriginal
2016-05-16 17:30:001568browse
Copy code The code is as follows:

//Check whether it is checked
function checkboxs() {
var fkfs="";
var zhanghu="";
var money="";
var sta=true;
$("#thetable tr").each( function(){
var chk=$(this).find('td').eq(0).find('input');
if(chk.attr("checked")==" checked"){
fkfs =chk.val() ",";
var zh=$(this).find('td').eq(3).find('select');
var mon=$(this).find('td').eq(4).find('input');
zhanghu =zh.val() ",";
}
} );
}
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn