Best approach for extending unobtrusive javascript in MVC3 to add a style to a div client side

后端 未结 7 840
情话喂你
情话喂你 2021-01-31 03:50

I\'m using html5/Razor/MVC3 leveraging the Bootstrap template from Twitter. I want to have form validation that looks slick like they\'ve documented (http://twitter.github.com/b

7条回答
  •  -上瘾入骨i
    2021-01-31 04:23

    What I've done is taken the css classes for the validation errors and created a new css file with the same classes but with bootstrap values.

    You can find it in a nuget package at: http://nuget.org/List/Packages/MahApps.Twitter.Bootstrap

    That also provides some scaffolding templates to autocreate new views.

提交回复
热议问题