Código HTML:
<script>
$( "form" ).submit(function() {
var number1 = $('#number1').val();
var number2 = $('#number2').val();
var number3 = $('#number3').val();
if((number1 == "1" && number2 == "2" && number3 == "3") ||
(number1 == "3" && number2 == "2" && number3 == "1") ||
(number1 == "2" && number2 == "1" && number3 == "3") ||
(number1 == "2" && number2 == "3" && number3 == "1") ||
(number1 == "1" && number2 == "3" && number3 == "2") ||
(number1 == "3" && number2 == "1" && number3 == "2"))
return true;
else
return false;
});
</script>