<form action="send.php"method="post" class="right">
<input type="text" class="inp" name="name" required="" value="" placeholder="Ваше имя" />
<input type="text" class="inp" name="phone" required="" value="" placeholder="Ваш телефон"/>
<input class="inp" type="submit" value="Заказать" />
</form>
$("form").submit(function(e) {
var ref = $(this).find("[required]");
$(ref).each(function(){
if ( $(this).val() == '' )
{
alert("Required field should not be blank.");
$(this).focus();
e.preventDefault();
return false;
}
}); return true;
});