Steve Wilkes

.NET, Agile, TDD, design patterns and all that jazz

Wednesday, October 3, 2012

Unobtrusive Maximum Input Lengths with JQuery and FluentValidation

JQuery unobtrusive validation can be used to show an error message when the user inputs too many characters or a numeric value which is too big. On a recent project we wanted to use input's maxlength attribute to prevent a user from entering too many characters rather than cure the problem with an error message - here's how we did it.
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati
  •   Short Url: http://wblo.gs/dFg
Posted On Wednesday, October 3, 2012 5:58 PM | Comments (0)

About
  • Contact
  • Login
Tag Cloud
  • Agile
  • Amazon
  • ASP.NET
  • ASP.NET MVC
  • Books
  • Extension Methods
  • MVC
  • Programming
  • more tags...
Archives
  • March 2013 (1)
  • February 2013 (1)
  • January 2013 (2)
  • November 2012 (1)
  • October 2012 (3)
  • August 2012 (1)
  • May 2012 (1)
  • February 2012 (3)
  • January 2012 (1)
  • November 2011 (2)
  • October 2011 (1)
  • September 2011 (2)
  • August 2011 (3)
  • July 2011 (1)
  • June 2011 (2)
  • May 2011 (2)
  • April 2011 (5)
  • March 2011 (3)
Post Categories
  • Aspect Oriented Programming (AOP)
  • Enterprise Library (EL)
  • Unity
  • Patterns
  • Dependency Injection (DI)
  • ASP.NET MVC
  • C#
  • Domain Driven Design (DDD)
  • Entity Framework (EF)
  • ASP.NET
  • Book Reviews
  • Programming Practices
  • Windows Azure
  • WCF
  • JQuery
  • UI Testing
  • Expression Trees
Syndication
  • RSS
  • ATOM

© Steve Wilkes

Key West theme by Robb Allen.