Jquery _ jquery

Source: Internet
Author: User
Jquery gets the content of all td in a row in table. For more information, see The Code is as follows:











14 TopParty discount
Select a role System AdministratorSystem Administrator 2System Administrator 3System Administrator 4System Administrator 5

Select permission SearchAccessCreateModify

Add
Delete

Script
Function Bind (thisObj, thisObjID ){
Alert ("Bind ");
Var $ td = $ (thisObj). parents ('tr '). children ('td ');

// Alert ($ td. eq (0). text (); // content of the first td

// Alert ($ td. eq (1). text (); // the content of the second td
// Alert ($ td. eq (2). find ("select"). val (); // The value of selected for the content of the third td
// Alert ($ td. eq (3). find ("select"). val ());

Var resourceBlockID = $ td. eq (1 ). attr ("id"); // The ID value of the second Td, attr ("id"); get the Id value of this object
Var roleId = $ td. eq (2). find ("select"). val ();
Var operationId = $ td. eq (3). find ("select"). val ();
Alert ("resource Id" + resourceBlockID );
Alert ("role Id" + roleId );
Alert ("Operation ID" + operationId );

Var helptime = new Date (). getTime ();
}
Script

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.