复选框,asp.net mvc3 [英] checkbox, asp.net mvc3
本文介绍了复选框,asp.net mvc3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是网络的初学者,我将测试是否选中了一个复选框,如果没有,我将发布一个模板(如果不是另一个模板,它将是动态的).如果我取消选中切换到另一个模板(我有两个模板)
像这样:
I''m beginner in the web, I will test if a checkbox is checked or not checked if it is I will post a template if not another template, which will be dynamic, If I uncheck switche to another template (I have two template)
Like this:
<input type="checkbox" name="CHECKBOX_1" value="1" id="1" checked="checked"/>;
if(...){
template_2
}
else(...)
{
template_1
}
我该怎么办?
对不起,我的英语不好
谢谢,
how can i do this?
I am sorry for my bad english
thanks,
推荐答案
您可以检查复选框的值
checkbox.value=true
然后 doc1 else doc2
you can check value of checkbox
checkbox.value=true
then doc1 else doc2
这篇关于复选框,asp.net mvc3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文