viernes, 4 de mayo de 2012

Validación en Javascript. Código muy limpio.

In a recent project I had to validate a form in Javascript, I've done it thousands of times, but during this one instance I had a stroke of ... oh my god I can really do this ... moment. Essentially it cleaned up about 40 lines of code down to about five or six, and ontop of that, you can easily set variables inside your operation or outside, its just beautiful:

Resto del artículo (fuente original)

No hay comentarios:

Publicar un comentario