Jquery obtains the values of the three and four columns in the row of the checked (selected) selected _ jquery

Source: Internet
Author: User
You may encounter this kind of requirement. You can use jquery to obtain the values of the three and four columns in the selected checked row. The specific implementation is as follows. For more information, see, hope to help you The Code is as follows:


// Check whether the check box is selected
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 () + ",";
}
});
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.