Wahtel,
<!DOCTYPE HTML>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
<style type="text/css">
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script>
$(function() {
$("form").submit(function() {
var words = $(":text", this).filter(function() {
return !$.trim(this.value)
});
if (words.length == 2) words.parent().remove();
if (words.length == 1) words.css('background', 'rgb(255, 0, 0)');
if (!words.length) return true;
return false
})
});
</script>
</head>
<body>
<form action="http://">
<div>
<input name="" type="text">
<input name="" type="text"></div>
<input name="" type="submit" value="ok">
</form>
</body>
</html>