Home > Web Front-end > JS Tutorial > 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
Release: 2016-05-16 17:30:00
Original
1633 people have browsed it
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() ",";
}
} );
}
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template