Applying jQuery UI CSS to MVC .input-validation-error -
i writing asp.net mvc app. @ client side validation part. found when ui flashes error, uses class .input-validation-error.
what have in order make class same jquery ui uses alert css.
if go http://jqueryui.com/themeroller/ , @ lower right you'll see alert box. correct way use styling input validation error class?
i new mvc not sure how go this
what put line of code in partial view , pass message or view model partial view.
<div id="error-effect" class="ui-widget"> <div class="ui-state-error ui-corner-all" style="padding: 0 .7em;"> <div style="margin-top:12px;"> <p><span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span> <strong>error:</strong> "your message goes here" </p> </div> </div> </div>
if have imported jquery classes correctly, should display way on themeroller page.
Comments
Post a Comment