JSP click the single row list to start the event

Source: Internet
Author: User

Java code
In principle, it is the trigger event of tr binding.
Java code
 
Java code
// Click the mouse to trigger detailed display of a single row
$ (Function (){
$ ("# Demo tr"). bind ('click', function (){
Var node = $ (this );
Var list_RowIdNodes = node. find ("input [name = 'row _ id']"). val ();
// Alert (list_RowIdNodes );
Selectrow (list_RowIdNodes );
});
});
 
 
The JSP list is written as follows.
 
Java code
<Tr>
<Td valign = "top">
<Div style = "OVERFLOW-Y: auto; OVERFLOW-X: auto; HEIGHT: 200px; WIDTH: 100%;">
<Form name = "pageform" action = "<s: url value = '/common/commonpage'/>" method = "post">
<Page: toolbar name = "list" formname = "pageform" listJspPage = "/pages/admin/management/user/listUser. jsp" beanid = "cb"
ToolBarShow = "false" border = "0" pagesize = "5" listTableId = "demo" width = "100%" styleClass = "table_border">
<Page: checkbox id = "cb" name = "row_id" isNo = "true" styleClass = "rightcss" titleEvent = "onclick = 'selectbox (this) '"property =" row_id "colunmName =" Select "/>
<Page: colunm id = "cb" colunmName = "User ID" colunmId = "login_name" isOrderBy = "true"> </page: colunm>
<Page: colunm id = "cb" colunmName = "User Name" colunmId = "user_name" isOrderBy = "true"> </page: colunm>
<Page: colunm id = "cb" colunmName = "Position" colunmId = "pos_name" isOrderBy = "true"> </page: colunm>
<Page: colunm id = "cb" colunmName = "Department" colunmId = "dept_name" isOrderBy = "true"> </page: colunm>
<Page: colunm id = "cb" colunmName = "User Status" colunmId = "user_status_name" isOrderBy = "true"> </page: colunm>
 
</Page: toolbar>
</Form>
</Div>
<Script language = "JavaScript">
Anole ('Demo', 1, '# F3F3F3', '# f9f9f9',' # d9e8fb ',' # b4d0f8 ');
</Script>
</Td>
</Tr>

Author "ticojj"
 

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.