Jquery Table List Multi-select implementation

Source: Internet
Author: User

$ ("#checkAll"). Bind ("click", Function () {
Debugger
if (this.checked) {
$ ("[name = Checkitem]:checkbox"). attr ("Checked", true);
}
else {
$ ("[name = Checkitem]:checkbox"). attr ("checked", false);
}
});

<table class= "Table table-striped table-hover table-condensed" >
<thead>
<tr>
<th><input id= "Checkall" type= "checkbox"/></th>
<th> Order Number </th>
<th> Customer Code </th>
<th> Customer Name </th>
<th> Order Date </th>
<th> waybill number </th>
<th> e-commerce platform name </th>
<th> Lot Number </th>
<th> Edit </th>
</tr>
</thead>
<tbody>
@foreach (var item in Model)
{
<tr>
<td><input id= "@item. Id "Name=" Checkitem "type=" checkbox "/></td>
<td> @Ajax. ActionLink (item. OrderNo, "Details", new {item. Id}, new Ajaxoptions {Updatetargetid = "Main"}) </td>
<td> @Html. displayfor (A = Item. Customcode) </td>
<td> @Html. displayfor (A = Item. Customname) </td>
<td> @Html. displayfor (A = Item. CreateDate) </td>
<td> @Html. displayfor (A = Item. Waybillno) </td>
<td> @Html. displayfor (A = Item. Platname) </td>
<td> @Html. displayfor (A = Item. Batchno) </td>
<td>
@Ajax. ActionLink ("editor", "edit", NULL, new {id = Item.) Id}, new Ajaxoptions {Updatetargetid = "Main"}, new {@class = ""})
<span>&nbsp;</span>
@Ajax. ActionLink ("Remove", "delete", NULL, new {id = Item. Id}, new Ajaxoptions {Updatetargetid = "Main", HttpMethod = "Delete", Confirm = "Are you sure you want to delete this record?" This operation is not recoverable! "}, new {@class =" "})
</td>
</tr>
}
</tbody>
</table>

Jquery Table List Multi-select implementation

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.