var value = $.trim($(this).val());

if ($(this).hasClass(invalidClass))
...

JavaScript jQuery script: too many ifs...

by Nathan, November 18, 2010 09:49, 3 refactorings, tagged with validation, jquery, if else

This is part of a jQuery pl...

D5145c421cd25af6fa577c15219add90 Talk
//function that loops through the elements
function __validateForm(theform){
...

JavaScript Simple form validator with ...

by eljota, November 11, 2007 10:32, 5 refactorings, tagged with javascript, js, form, validation, regex

This is a real simple form ...

D41d8cd98f00b204e9800998ecf8427e Talk