在asp.net中选中复选框 [英] checkbox checked in asp.net
问题描述
var senderTitle11 = $(sender).attr("title11");
$(".RoomActiveCkb").prop("checked", "True");
in var sendertitel11存储值true或false set我可以在.cs文件中找到sendertitel11值
这个值设置在表格中如何设置?
in var sendertitel11 store the value true or false set and i can find the sendertitel11 value in .cs file
And this value set in table checkbox how to set?
<tr>
<td align="right">
RoomActive :
</td>
<td>
<asp:CheckBox ID="RoomActiveCkb" CssClass="RoomActiveCkb" runat="server" />
</td>
</tr>
运行页面,但是当值为true时没有选中复选框
和上面的表在一个简单的弹出窗口中打开
run the page but not checkbox checked when value is true
and above table is open inside one simple popup
推荐答案
(发件人).attr( title11);
(sender).attr("title11");
( .LoomActiveCkb)。prop( 选中, True);
(".RoomActiveCkb").prop("checked", "True");
var sendertitel11中的
存储值true或false设置,我可以在.cs文件中找到sendertitel11值
这个值设置在表格中如何设置?
in var sendertitel11 store the value true or false set and i can find the sendertitel11 value in .cs file
And this value set in table checkbox how to set?
<tr>
<td align="right">
RoomActive :
</td>
<td>
<asp:CheckBox ID="RoomActiveCkb" CssClass="RoomActiveCkb" runat="server" />
</td>
</tr>
运行页面但不是当值为true时复选框复选
和上面的表在一个简单的弹出窗口中打开
run the page but not checkbox checked when value is true
and above table is open inside one simple popup
你好,
我建议你阅读并理解这篇文章以解决问题
http://www.mkyong.com/jquery/how-to-check-unchecked-a-checkbox-with-jquery/ [< a href =http://www.mkyong.com/jquery/how-to-check-unchecked-a-checkbox-with-jquery/target =_ blanktitle =New Window> ^ ]
所有最佳:)如果您需要更多的编码支持,请回信。
Hello ,
I suggest you to read and understand this article to fix the solution
http://www.mkyong.com/jquery/how-to-check-unchecked-a-checkbox-with-jquery/[^]
All the Best:)pls write back if you need more support in coding.
这篇关于在asp.net中选中复选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!