如何在mvc中关注复选框 [英] how to focus check box in mvc
本文介绍了如何在mvc中关注复选框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好b $ b
如何把这个复选框集中在mvc
@Html .CheckBox( chkrmark,false,new {id = Model.objremarksmasterlist [循环] .remarksid})
任何建议??
解决方案
< script type = text / javascript>
( function (){
( #chkrmark)。first()。focus();
});
< / script>
或
< pre lang =Javascript>< script type = text / javascript>
Hi
how to focus this check box in mvc
@Html.CheckBox("chkrmark", false, new { id = Model.objremarksmasterlist[loop].remarksid })
any suggestion??
解决方案
<script type="text/javascript">
(function () {
("#chkrmark").first().focus(); }); </script>
or
<script type="text/javascript">
这篇关于如何在mvc中关注复选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文