jquery validate plugin, show only one error at a time
$('#form').validate({ errorLabelContainer:'#errorContainer', showErrors: function(errorMap, errorList) { if(errorList.length) { $('#errorContainer').html(errorList[0]['message']); } }, highlight:function(element,errorClass){ $(element).parent('td').addClass('error'); }, unhighlight:function(element,errorClass){ $(element).parent('td').removeClass('error'); } })

