Generated code from MVC for jQuery Validation


/ Published in: HTML
Save to your folder(s)

Generated from MVC


Copy this code and paste it in your HTML
  1. <form action="/UserManagement/CreateUser" class="panel form-horizontal" id="createUserForm" method="post">
  2. <div class="panel-heading"><span class="panel-title">Invite user</span></div>
  3. <div class="panel-body">
  4. <div class="row">
  5. <div class="col-md-6">
  6. <div class="form-group">
  7. <input class="form-control" data-val="true" data-val-required="The MyName field is required." id="MyName" name="MyName" placeholder="Name" type="text" value="" />
  8. <span class="field-validation-valid help-block" data-valmsg-for="MyName" data-valmsg-replace="true"></span>
  9. </div>
  10. </div>
  11. <div class="col-md-6">
  12. <div class="form-group">
  13. <input class="form-control" data-val="true" data-val-email="The MyEmail field is not a valid e-mail address." data-val-required="The MyEmail field is required." id="MyEmail" name="MyEmail" placeholder="Email" type="text" value="" />
  14. <span class="field-validation-valid help-block" data-valmsg-for="MyEmail" data-valmsg-replace="true"></span>
  15. </div>
  16. </div>
  17. </div>
  18.  
  19. </div>
  20. <div class="panel-footer text-right">
  21. <button class="btn btn-primary">Send invite</button>
  22. </div>
  23. </form>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.