本文介绍了如何使用jquery获取动态id的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<div class="table-responsive custom-table">
@if (Model._Approval_Plan_lst != null)
{
int count = 0;
foreach (var item in Model._Approval_Plan_lst)
{
count++;
@**@
}
}
<table id="tblDraftist" class="table table-striped table-bordered table-hover">
<thead>
<tr><th>Sr.No</th>
<th>Document No</th>
<th>Start Date</th>
<th>End Date</th>
<th>Estimated Cost</th>
<th>Requested Amount</th>
<th>Expected Lead</th>
<th>Status</th>
<th>Remarks</th>
<th>Select</th>
</tr>
</thead>
<tbody id="tbodyDraftList">
<tr class="gradeX">
<td>@count</td>
<td>@item.DOCUMENT_NO</td>
<td>@item.START_DATE</td>
<td>@item.END_DATE</td>
<td>@item.ESTIMATED_COST</td>
<td>@item.REQUESTED_AMOUNT</td>
<td>@item.EXPECTED_LEAD</td>
<td>@item.STATE_NAME</td>
<td>@item.REMARKS</td>
<td>@item.IsStatus</td>
<td></br></td>
</tr>
</tbody>
</table>
</div>
我尝试过:
What I have tried:
$('#chk_' + Approval_GEN_PLAN_ID +'').click(function () {
});
以上是我的代码如何点击输入类型文本框wh ich是动态绑定我要点击输入类型复选框但它不是点击功能上的电话
所以请告诉我如何使用Jquery
Above is my Code How to Click on Input type Text Box which is Using Bind Dynamically and I want To Click on Input Type Check box but It is not Call on Click Function
so Please tell me How id Call on Click Function Using Jquery
推荐答案
以上是我的代码如何点击输入类型文本框动态使用绑定我想点击输入类型检查盒子但它不是点击功能上的电话
所以请告诉我如何使用Jquery点击功能调用id
Above is my Code How to Click on Input type Text Box which is Using Bind Dynamically and I want To Click on Input Type Check box but It is not Call on Click Function
so Please tell me How id Call on Click Function Using Jquery
这篇关于如何使用jquery获取动态id的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!