没有出现Bootstrap radiobutton,MVC 5 [英] Bootstrap radiobutton does not appear, MVC 5
本文介绍了没有出现Bootstrap radiobutton,MVC 5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
美好的一天
我有以下代码...
< div class = col-sm-10 >
< div class = radio >
< label >
< 输入 类型 = radio 已选中 = value = option1 id = optionsRadios1 name = optradio / > Pagos Mensuales
< / label >
< / div >
< div class = radio >
< 标签 >
< 输入 类型 = radio value = option2 id = optionsRadios2 名称 = optradio / > Monto a solicitar por Cota
< / label >
< / div >
< / div >
(这是一种形式),如果你可以看到 Bootstrap [ ^ ]
但在我的页面上没有显示!!也希望改变radiobutton点击事件并显示局部视图......我怎样才能从控制器中显示这个?
我尝试过:
i用剃须刀试试
@ Html.RadioButton(名称:rdoPagosMensuales, value:SelectedValue,isChecked:false)
解决方案
它只是在我的css文件中更改显示属性
输入[type =radio] {
display:none; - >更改内联或阻止内联块
}
它只是在我的css文件中更改显示属性
输入[type =radio] {
display:none; - >更改内联或阻止内联块
}
和加载事件i在此页面中使用此推荐 使用jQuery动态加载ASP.NET MVC部分视图BinaryIntellect知识库 [ ^ ]
good day
I have the following code ...
<div class="col-sm-10">
<div class="radio">
<label>
<input type="radio" checked="" value="option1" id="optionsRadios1" name="optradio"/>Pagos Mensuales
</label>
</div>
<div class="radio">
<label>
<input type="radio" value="option2" id="optionsRadios2" name="optradio"/>Monto a solicitar por Cota
</label>
</div>
</div>
(This are in a form) as it can be seen in bootply if you can visualize Bootstrap[^]
but on my page is not displayed!! also wish to change the radiobutton click event and show a partial view... how can i show this from the controller ??
What I have tried:
i tryed with razor
@Html.RadioButton( name: "rdoPagosMensuales", value: "SelectedValue", isChecked: false)
解决方案
it was simply just change on my css file the display attribute
input[type="radio"] {
display: none; --> change for inline or block o inline-block
}
it was simply just change on my css file the display attribute
input[type="radio"] {
display: none; --> change for inline or block o inline-block
}
and for load the event i Use this recomendation in this page Load ASP.NET MVC Partial Views Dynamically Using jQuery | BinaryIntellect Knowledge Base[^]
这篇关于没有出现Bootstrap radiobutton,MVC 5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文