MVC4验证剃刀和Twitter引导 [英] MVC4 Validation with razor and twitter bootstrap
本文介绍了MVC4验证剃刀和Twitter引导的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要验证我的输入MVC4剃须刀。问题是,我想使用Twitter的引导,然后将错误信息类的顶级 DIV
因为在这里看到:的 http://getbootstrap.com/css/#forms-control-states
I need to validate my input in MVC4 razor. The problem is, I want to use twitter bootstrap and then set the error message class for the top div
as seen here: http://getbootstrap.com/css/#forms-control-states
我怎样才能改变父母的班? DIV
How can I change the parent div
's class?
推荐答案
您是否尝试过这个剧本?
Have you tried this script?
的http://blog.ijasoneverett.com/2013/05/asp-net-mvc-validation-with-twitters-bootstrap/
我用得到引导和MVC验证发挥好类似的东西。
I use something similar for getting bootstrap and mvc validation to play nice
这篇关于MVC4验证剃刀和Twitter引导的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文