jquery - How to include Password Strength Validator in MVC 4 -
I am struggling to find a way for working password strength testers, but have not found the solution yet. I have ajaxbasegenform in partial view for some simple input.
Here's my view: @model EntryViewModel
& lt; Style & gt; Input.input-validation-error, textarea.input- verification-error, select.input-validation-error {background: # FEF1EC; Limit: 1 px solid # cd 0aa; } .field-validation-error {color: # C55050; } & Lt; / Style & gt; @ (Ajax beniform ("create", "entry", new Ajax option {HttpMethod = "Post"})) {@ Html.AntiForgeryToken () @html. Validity valid (true) & lt; Div class = "editor-label" & gt; @htmllabelfor (model = & gt; model .title) & lt; / Div & gt; & Lt; Div class = "editor-field" & gt; @ Html.TextBoxFor (model = & gt; model .title, new {@class = "form-control"}) @html. Validation message (model = & gt; model. Title) & lt; / Div & gt; & Lt; Div class = "editor-label" & gt; @html.labelfor (model = & gt; model username) & lt; / Div & gt; & Lt; Div class = "editor-field" & gt; @ Html.TextBoxFor (model = & gt; model user name, new {@class = "form-control"}) @html. Validation message (model = & gt; model username) & lt; / Div & gt; & Lt; Div class = "editor-label" & gt; @HTMLLabelFor (model = & gt; model password) & lt; / Div & gt; & Lt; Div class = "editor-field" & gt; @ Html.TextBoxFor (model = & gt; model password, new {@class = "form-control"}) @html. Validation message (model = & gt; model password) & lt; / Div & gt; & Lt; Div class = "editor-label" & gt; @htmllabelfor (model => url URL) & lt; / Div & gt; & Lt; Div class = "editor-field" & gt; @ Html.TextBoxFor (model => model.Url, new {@class = "form-control"}) @html Validity message (model = & gt; model.Url) & lt; / Div & gt; & Lt; Div class = "editor-label" & gt; @ Html.LabelFor (model = & gt; model description) & lt; / Div & gt; & Lt; Div class = "editor-field" & gt; @ Html.TextAreaFor (model = & gt; model description, new {@class = "form-control"}) @html. Validity message (model = & gt; model description) & lt; / Div & gt; @ Html.HiddenFor (model => model.CategoryId) & lt; Div class = "modal-footer" & gt; & Lt; A href = "#" data-rejected = "modal" class = "btn" & gt; Close & lt; / A & gt; & Lt; Input class = "btn btn-primary" id = "submit button" type = "submit" value = "create" /> & Lt; / Div & gt; }
I have tried several ways including KDoUI, but does not work any suggestions for solution?
What about it
Comments
Post a Comment