Skip to main content

Posts

Showing posts from October, 2014

asp.net mvc checkbox will check all the check box in html table

Table: <table class="rptcontenttext" style="width: 100%; border-style: solid; border-collapse: collapse" border="1px" cellpadding="0" cellspacing="0"> <thead> <tr> <th style="text-align:left;width:10px;"> <input type="checkbox" value="true" name="chkVerifySelection" id="chkVerifySelection" onchange="return checkAllVerifySelection();" /> </th> <td class="rptrowdata" align="left"> Employee ID </td> </tr> </thead> <tbody style="overflow-y: auto; overflow-x: hidden; max-height: 400px; width: 100%;"> @for (int i = 0; i < Model.EmployeeInformationList.Count; i++) { <